PHP Classes

File: docs/Features/Including another templates.md

Recommend this page to a friend!
  Packages of Rafa Rodriguez   Div PHP Template Engine   docs/Features/Including another templates.md   Download  
File: docs/Features/Including another templates.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Div PHP Template Engine
Template processing engine that replaces tags
Author: By
Last change:
Date: 3 months ago
Size: 478 bytes
 

Contents

Class file image Download

A complex design, require split of the template. Then you can include the design's parts in a container template.

Syntax in templates


{% var with path to the template's part %}
	
OR
	
{% path/to/the/template/part %}

Example

part.tpl

Hello world!

index.tpl


This is the container template:
	
{% part %}

Output


This is the container template:
	
Hello world!

Important:

The engine does not accept that a template is included itself.