UL4 compiler


Enter the source code for your template. (More information about the templating language).




Start delimiter: 
End delimiter: 
Select which tag delimiters you want to use in the source code (e.g. <? and ?> or {{ and }}).

Output format

repr() output of bytecode
Python source code

Select the output format that the compiler should produce:

  • Bytecode can be saved to a file (UTF-8 must be used as the encoding) and then be loaded via ll.ul4c.Template.load().
  • repr() output of the bytecode can be apsted directly into a Python source file into a call to ll.ul4c.Template.loads().
  • Python source code produces a Python function template(templates={}, **variables).

Web service

You can use this application as a web service. To compile a template post the data to the url http://ul4.appspot.com/compile. The following parameter can be passed:

source (mandatory)
The template source code
startdelim (optional)
The start delimiter for tag. It defaults to <? if unspecified.
enddelim (optional)
The end delimiter for tag. It defaults to ?> if unspecified.
format (optional)
Either bytecode, reprbytecode or python. It defaults to bytecode if unspecified.

The parameters should be UTF-8 encoded.

In case of a compiler error the server will return a HTTP status code of 400. The body of the response will contain the error message.


The source of this application is available from a Mercurial repository. To clone this repository install Mercurial and enter the following command:

$ hg clone http://hg.livinglogic.de/LivingLogic.GoogleAppEngine.ul4