Template engine. A web template system in web publishing lets web designers and developers work with web templates to automatically generate custom web pages such as the results from a search. Plugins can be wrapped in classes or simple functions they can be precompiled to optimize the load time of the template etc. The built in backends are djangotemplatebackendsdjangodjangotemplates and djangotemplatebackendsjinja2jinja2.
You basically write c code in blocks and can thus do most things c can do with the limitation that the entire template file is being compiled to a single method. Backend is a dotted python path to a template engine class implementing djangos template backend api. Overview documentation community welcome jinja2 is a full featured template engine for python.
Slim is a template language whose goal is reduce html syntax to the essential parts without becoming cryptic. This reuses static web page elements while defining dynamic elements based on web request parameters. So with a template engine the programmer should separate the presentation view from the logic modelit is very important to strictly separate these two parts.
Since most engines load templates from files the top level configuration for each engine contains two common settings. Otherwise these parts wont be independent anymore and you will lose all advantages of a template engine. To generate html output see package htmltemplate which has the same interface as this package but automatically secures html output against certain attacks.
Jade is an templating engine primarily used for server side templating in nodejs. It has full unicode support an optional integrated sandboxed execution environment widely used and bsd licensed.