Genereto Documentation

Back to the homepage

Templating System

Published: 2024-01-05 | 1 min read

Templating System

Genereto uses a simple variable replacement system for templates.

Basic Usage

Variables are accessed using the $GENERETO['variable_name'] syntax:

<title>&#36;GENERETO['title']</title>
<meta name="description" content="&#36;GENERETO['description']">

Content Replacement

The main content is replaced between special markers:

<!-- start_content -->
This content will be replaced
<!-- end_content -->