BSD Ports

devel/pear-HTML_Template_Sigma 1.3.0 DragonFly

Implementation of Integrated Templates API with template 'compilation' added

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
PHP301
Categories
devel, pear, www
Package size
29.6 KiB, 147.3 KiB installed

Description

HTML_Template_Sigma implements Integrated Templates API designed by Ulf Wendel.

Features:

  • Nested blocks. Nesting is controlled by the engine.
  • Ability to include files from within template: <!-- INCLUDE -->
  • Automatic removal of empty blocks and unknown variables (methods to manually tweak/override this are also available)
  • Methods for runtime addition and replacement of blocks in templates
  • Ability to insert simple function calls into templates: func_uppercase('Hello world!') and to define callback functions for these
  • 'Compiled' templates: the engine has to parse a template file using regular expressions to find all the blocks and variable placeholders. This is a very "expensive" operation and is an overkill to do on every page request: templates seldom change on production websites. Thus this feature: an internal representation of the template structure is saved into a file and this file gets loaded instead of the source one on subsequent requests (unless the source changes)
  • PHPUnit-based tests to define correct behaviour
  • Usage examples for most of the features are available, look in the docs/ directory

In the other systems

SystemPortVersion
DragonFlydevel/pear-HTML_Template_Sigma1.3.0
FreeBSDdevel/pear-HTML_Template_Sigma1.4.0
HardenedBSDdevel/pear-HTML_Template_Sigma1.4.0
GhostBSDdevel/pear-HTML_Template_Sigma1.4.0

Install

Binary package:

pkg install php81-pear-HTML_Template_Sigma

From DPorts:

cd /usr/dports/devel/pear-HTML_Template_Sigma && make install clean

Dependencies

Run dependencies 3

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
php82-pear-HTML_Template_Sigma-1.3.0, php83-pear-HTML_Template_Sigma-1.3.0, php84-pear-HTML_Template_Sigma-1.3.0