PHP Classes

File: docs/Features/Friendly tags.md

Recommend this page to a friend!
  Packages of Rafa Rodriguez   Div PHP Template Engine   docs/Features/Friendly tags.md   Download  
File: docs/Features/Friendly tags.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: 517 bytes
 

Contents

Class file image Download

IDE sometimes detects the code of Div in HTML templates like a syntax error, because they don't have a plugin that identify the syntax of Div. Then, to avoid that it is shown as an error, Div provides two tags to encapsulate its code making it a comment.

Syntax in templates


<!--| ... some Div code here ... |-->

Example

index.tpl


This:
	
<!--| [$products] |-->
	Name: {$name}
	Price: {$price}
<!--| [/$products] |-->
	
Is equal to:
	
[$products]
	Name: {$name}
	Price: {$price}
[/$products]