Templex Documentation
Templex is a lightweight, regex-based template rendering engine for PHP that allows you to create dynamic content using simple template syntax. No eval(), no PHP includes — just fast, safe regex processing.
Getting Started
Section titled “Getting Started”- README — installation and quick start
Core Concepts
Section titled “Core Concepts”- Templates — template syntax, file types, directories, caching, and safety
- Slots — includes, conditions, loops, switch statements, ternary/null coalescing, variables, and custom slots
Example Guides
Section titled “Example Guides”- Condition Examples — operators, self-evaluation, nesting, and value types
- Foreach Examples — key-value iteration, nested loops, and associative arrays
- For Loop Examples — nested loops, tables, pagination, and best practices
- Switch Statement Examples — string/numeric/boolean cases, nesting, and variable cases