A Tiny Templater
1.6: Markup and Expansion Rules
- Scalars
- Replaced with FOO entry in current hash in tree
- Replaced with '' if not found
- Hashes
- Marked with [%CHUNK_FOO%]body[%END_FOO%]
- Uses FOO entry in Current hash
- Body is expanded with FOO Entry (recursion)
- Replaced with '' if no FOO entry (use for conditionals)
- Lists
- Just put an array of hashes in a hash entry
- Will expand body for each array entry making it the current hash
- Includes
- Marked with [%INCLUDE FOO%]
- Replaced with included FOO file
- Included files are cached
- Includes done before any expansion
- Can use search path to find include files