[[]] Div Dialect Creator | divengine.com | github/rafageist/div
version 1.3 [from Div 4.7]
Variables Variable's member delimiter:
Replacements Prefix: Suffix: Substring separator:
Multi modifiers Prefix: Operator: Separator: Suffix:
Template variables Begin: Protector: Operator: End:
Data format
Prefix Separator Suffix
Dates
Numbers
Capsules
PrefixSuffix
Begin:
End:
HTML to plain Begin:
:
End:
Formulas Begin:
:
End:
Multiple replacements
PrefixSuffix
Begin:
End:
Simple blocks
BeginEnd
Ignored parts:
Comments:
Strip:
Friendly tags:
Macros:
Loops
PrefixSuffix
Begin:
End:
Empty tag:
Break tag:
Variable separator:

Aggregate functions
Count: Max:
Sum: Min:
Average:
Function separator:
Property separator:
Content's tags Teaser break:
Custom sub-parsers
PrefixSuffix
Begin:
End:
Rigid blocks:
PrefixSuffix
Default replacement
Includes
Pre-processed
Locations
Iterations Begin prefix:
Arguments's separator:
Suffix:
End:
Conditional's parts
TRUE parts
PrefixSuffix
Begin:
End:
FALSE parts
PrefixSuffix
Begin:
End:
Variable's modifiers Simple replacement:
Format (sprinf):
Capitalize first:
Capitalize words:
Upper case:
Lower case:
String's length:
Count words:
Count sentences:
Count paragraphs:
URL encode:
Raw URL encode:
JSON encode:
HTML entities:
New line to BR:
Truncate:
Wordwrap:
Substring:
Escape quotes:
Javascript code:
Special replacements New line (\n):
Car return (\r):
Horizontal tab {\t}:
Vertical tab {\v}:
Next page (\f):
Dollar symbol:
Location's contents
PrefixSuffix
Begin:
End:
Conditions Begin prefix:
Suffix:
End:
Else tag:
Variables personname

Replacements name

Multi-modifiers: name
Template vars products [
  {name: "Potato", price: 20},
  {name: "Banana", price: 10}
]
Data format Dates: div.nowY-m-d

Numbers: price2.,
Variable's modifiers
Simple name
Capitalize firstname
Capitalize wordsname
Upper casename
Lower casename
Lengthname
Wordsname
Sentencesname
Paragraphsname
URL encodename
Raw URL encodename
JSON encodename
HTML entitiesname
New linesname
Truncate/Teasername100
Word wrapname100
Substringname12
Single quotesname
Javascriptname
Format stringname.2f
Aggregate functions Count: productsprice
Maximum: productsprice
Minimum: productsprice
Average: productsprice
Sum: productsprice
Capsules entity
... some code here ...
entity
Content's tags Teaser break:

Lorem ipsum dolor sit amet, Excepteur sint ...

Convert next HTML into text 150
<p>Hello World</p>

Custom subparsers myparser
... some code here ...
myparser
Multiple replacements replaceall
... some code to replace their parts ...
replaceall
Formulas 1 + 2 + 3 2,.
Simple blocks Ignore:


... some ignored code here ...



Comments

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua

Strips



... some ugly code here ...

Friendly tags

name

Macros


// some macro here
$a = 5;

Rigid blocks Default replacement:
[true, 'YES']

Includes:
header

Pre-processed:
footer

Locations:
header_left
Special replacements New line (\n):
Car return (\r):
Horizontal tab {\t}:
Vertical tab {\v}:
Next page (\f):
Dollar symbol:
Location's contents header_left
   <img src="logo.png">
header_left
Loops products
   Name: name

   No products
products

Iterations 110i2 i
Conditional's parts TRUE parts

show
   Show something...

   Show another something...
show

FALSE parts

show
   Show another something...

   Show something...
show
Conditions number > 5
   The number is bigger
   than five

   The number is not bigger
   than five
<?php

/* Div PHP Template Engine Dialect - Generated by Div Dialect Creator - Last update 2025-06-06 */ 

/* IMPORTANT!: Include this file before you include div.php */

// Nothing to generate. All the tags are original.

// End of file