The template is called example.tmpl
and it contains the lecture source as well as defines various blocks.
Each of the blocks has a default argument that is simply the content that is found in the current python only version of the site.
The cool thing is how we can use this system to easily generate lecture files for both languages, by only having to define the blocks for julia. This happens in example_jl.tmpl
.
Notice I don't do anything beyond filling in the blocks here. i.e. there is no actual exposition here -- just replacing the default block parameters with their julia equivalent.
The python script run_example.py
shows how we could load the template and evaluate it. If you have python run the file it will print out the python and julia versions of the file for you.