Miscellaneous
| Function | Summary |
|---|---|
| cache-block | Caches the contents of a template block. |
| fetch_alias | Executes a fetch based on configuration settings. |
| include | Includes a file. |
| ldelim | Outputs a left curly bracket, "{". |
| literal | Instructs the parser to ignore a block of template code. |
| rdelim | Outputs a right curly bracket, "}". |
| run-once | Assures that a block of template code is run only once within a page view. |
In this section
- cache-block This solution makes it possible to reduce the processing time of the main template ("pagelayout.tpl"), which often contains a lot of dynamic elements. It can be used to instruct the system to store and reuse cached blocks of template code based on different conditions.
- fetch_alias This function can be thought of as a configuration-file based version of the "fetch" operator. It makes it possible to move data fetching blocks from template code to a configuration file and thus gather all fetches at one place. The advantage of such a scenario is that it allows quick modifications
- include Exponential Documentation
- ldelim This function displays a left curly bracket, "{". It can for example be used to add JavaScript functions in a template.
- literal This function can be used to encapsulate foreign code (for example JavaScript) that makes use of characters that may confuse the template parser. Everything that is inside a literal block will be completely ignored by the parser.
- rdelim This function displays a right curly bracket, "}". It can for example be used to add JavaScript functions in a template.
- run-once This function makes sure that a block of template code is processed only once within a page view. It is typically useful when it comes to displaying elements that should appear once or to do timeconsuming calculations that only has to be processed once (and the result is included in multiple templat
Contributors
- Balazs Halasy Updated
Comments
Add a comment