path
Adds a directory path to a path list for included files.
Syntax
path dir_path
Input
- dir_path
- A directory path for included files.
Example
- Example 1
- Template:
{path "/homes/common/templates";'add to the standard paths list}
- Example 2
- Template:
{home_dir = "homes/your_dir"} {path home_dir}
Comments
When one template is included within another, Templex checks the current directory for the template. If the template isn’t found, Templex checks the list of paths.
dir_path can be either literal text or a string variable. If dir_path is literal text, it must be placed between double quotes.