template_data | R Documentation |
All 'template_*' methods added in 'middleware' use this same function. Useful to add data that is required in every (or many) templates, e.g.: whether the user is authenticated or the CSRF token.
template_data(con, req, ...)
con |
Database connection. |
req |
A 'Request'. |
... |
Additional data (key value pairs). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.