<!-- template -->
fxl
{2.1.1}
FXL Template
is an easy to use template engine covering all the basic features of a template system. It supports simple text/array assignments, blocks and nested blocks. Well- used regular expressions and the simple markup are responsible for quick rendering. The template markup is really easy to learn - even for people not into programming. Everything can be done with just two types of place holders.
hello world example:
Template (example.tpl)
{greeting}
PHP-Code (demo.php)
require_once 'fxl_template.inc.php'; $fxlt = new fxl_template('example.tpl'); $fxlt->assign('greeting', 'hello world!'); $fxlt->display;
Output
hello world!
more complex example:
Template (example.tpl)
<table> <!-- START row --> <tr> <!-- START cell --><td>{td_value}</td><!-- END cell --> </tr> <!-- END row --> </table>
PHP-Code (demo.php)
require_once 'fxl_template.inc.php'; $fxlt = new fxl_template('example.tpl'); $fxlt_row = $fxlt->get_block('row'); $fxlt_cell = $fxlt_row->get_block('cell'); for ($tr = 1; $tr <= 3; $tr++) { for ($td = 1; $td <= 3; $td++) { $fxlt_cell->assign('td_value', $tr.':'.$td); $fxlt_row->assign('cell', $fxlt_cell); $fxlt_cell->clear(); } $fxlt->assign('row', $fxlt_row); $fxlt_row->clear(); } $fxlt->display();
Output
<table> <tr> <td>1:1</td><td>1:2</td><td>1:3</td> </tr> <tr> <td>2:1</td><td>2:2</td><td>2:3</td> </tr> <tr> <td>3:1</td><td>3:2</td><td>3:3</td> </tr> </table>
- PHP 5.1 or later
- Memcache extension (optional)*
- Windows, Linux, Unix, FreeBSD or Mac OS
- setup of pcre.backtrack_limit, pcre.recursion_limit (PHP 5.2+)**
** In a few cases you need to increase the value of pcre.backtrack_limit (PCRE's backtracking limit) and pcre.recursion_limit (PCRE's recursion limit) for extremly complex templates. This can be done in the php.ini config file and/or via "ini_set". Please read here before changing these values.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This library is published under the GNU Lesser General Public License.
This library is published under the GNU Lesser General Public License.
FXL Template 2.1.1 (2010-09-04) - stable
file | md5 | size in bytes |
---|---|---|
fxl_template_2_1_1.tar.gz | f7bed3d97856eb2ac982d603e08da7ce | 15 881 |
fxl_template_2_1_1.tar.bz2 | 7956c0b9d0ec17e3d344f7c31d717a5e | 14 580 |
fxl_template_2_1_1.zip | d52dbd3b49c95b88544bbea98ed02fc6 | 31 604 |
FXL Template 2.1 (2008-07-07) - archive
file | md5 | size in bytes |
---|---|---|
fxl_template_2.1.tar.gz | 8b3d4148fd9bf4e7e5812da7e57c43cf | 12 888 |
fxl_template_2.1.tar.bz2 | 43680d5612a71f97cb2c89a1a7d969a2 | 12 018 |
fxl_template_2.1.zip | f2001ce3854f126c16708efdaf9bf7a6 | 22 161 |
<html>
<?php
Websites / Customers we develop(ed) for:
online stores (like Rindchens Weinkontor, Styleteil, Hofsäß Markisen, Meevio, Formblitz, M-tec Sichtschutz),
Radio Stations (like KissFM, Berliner Rundfunk), social community platforms,
hotels (like Steigenberger, Hotel Berlin, Weißenhäuser Strand, Maritim),
artists / labels (like GFB, digital inferno), driving schools, car rental,
comparison portals, webhosting companies, marketing agencies, press, universities (like FU Berlin) and more ...
Special Focus:
- PHP5 (OOP)
- HTML5
- CSS3
- Responsive Design
- Usability
- Performace
- Documentation
- E-Commerce (online stores - especially Magento), Process Automation, Home Automation, all kind of coding challenges