This class allows the manipulation of a file. "Tpl" with a format accessible to the developer with the aim of generating text
strings with variable cycles and dependence. It is very comfortable and easy to create a page that requires a certain location
or value of variable such as the creation of a table where we would have to make a cycle within the HTML code making the text
nearly unreadable, in addition to add some complexity. Well, using this template does not need to concern ourselves with that
because it set the template that is responsible for properly engage the blocks.
Elements and expressions
1. Block
[<block_name>]
Block of information that will be added when parsing the block
[</block_name>]
block_name => identifies the block when you want to include it or put it inside another block as a unit
2. Variables
{{var_name}}
var_name => identifies the variable in case you want to pass a value for it, if not pass any Value simply
by sustitye empty ""
3. Blocks dependents
{<{block_name}>}
block_name => identifies the block to be included within another, if the bloc does not exist is launched An error.
4. Dependent multiple blocks
{<<{block_name}>>}
block_name => identifies the block you want to include more than one vexz within another, where the block
there was no spear, you miss an array with information for each iteration of a block error.
5. IncluciĆ³n other files
@include filename
filename => identifies the file that is needed is included at the same time as this, whether that is this
using a block that is in that file, or otherwise
|