There are three ways to generate content in Frontik application:
- Generic producer (
self.text
) - XML producer (with XSLT as templating engine)
- JSON producer (with Jinja2 as templating engine)
You can use any properly configured producer in your handlers, though using more than one is probably a bad idea. In the latter case generic producer has the highest and JSON producer has the lowest priority.
The output of producers is then passed to a chain of template postprocessors (see Postprocessing.