Layouts and Templates
Layouts and templates are used to create the export for a given file format.
Template engine
Whenever an export has to be made, kwilo uses the Smarty Template Engine to render templates and layouts.
Rendering lifecycle
kwilo has the following lifecycle when creating exports:Step | Description |
---|---|
Load | Load template data with help of GraphQL. Per template, you can overwrite the GraphQL query. |
Render | |
Convert | If output is of type XLSX or DOCX, convert the rendered HTML into XLSX or DOCX |
Send | Send the output to the user's browser |