Ah it wasn't mentioned earlier, but there is some nicer commenting syntax now. You just use
and put your stuff in there. It also means you can really easily comment out sections of your template by replacing what's in the () brackets with 0.
Also, here's something you can include at the top of your file to make templating a bit easier:
I've also decided to use python's sys.setrecursionlimit() to prevent a template file from being trapped in an infinite recursive loop and outputting garbage. (If this happens, it is the template writer's fault for not iterating through the binary source while using a recursive call.)
Code:
(0){ ... }
Also, here's something you can include at the top of your file to make templating a bit easier:
Code:
(0){
autoprog navigation syntax:
(This was pulled from autoprog's source code)
',':
x = 0
';':
x = 0
z = 0
' ':
x += 1
'$':
x -= 1
'<':
z += 1
'>':
z -= 1
'+':
y += 1
'-':
y -= 1
}
(Right){">"}
(Left){"<"}
(Forwards){" "}
(Back){"$"}
(Up){"+"}
(Down){"-"}
I've also decided to use python's sys.setrecursionlimit() to prevent a template file from being trapped in an infinite recursive loop and outputting garbage. (If this happens, it is the template writer's fault for not iterating through the binary source while using a recursive call.)