Recommend this page to a friend! |
Download .zip |
Info | View files (8) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2009-01-12 (7 years ago) | Not yet rated by the users | Total: 288 | All time: 7,080 This week: 1,099 |
Version | License | PHP version | Categories | |||
ubtemplate 1.0 | Freeware | 5.0 | PHP 5, Templates |
Description | Author | |||||||||||||
This package implements a template engine based on block replacing. |
|
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 |
Files |
File | Role | Description |
---|---|---|
ex.tpl | Data | file tpl |
include.tpl | Data | file tpl |
index.php | Example | ejemplo |
option.php | Class | class example |
readme_en.txt | Doc. | description |
readme_es.txt | Doc. | description in spanish |
template.php | Class | Main Class |
test_d.php | Class | class example |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.