Jul 20, 2023

Implementation of Integrated Templates API with template ‘compilation’ added

HTML_Template_Sigma implements Integrated Templates API designed by Ulf Wendel.


  • Nested blocks. Nesting is controlled by the engine.
  • Ability to include files from within template
  • 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

Checkout these related ports:
  • Zziplib - Library to provide transparent read access to zipped files
  • Zydis - Fast and lightweight x86/x86-64 disassembler library
  • Zycore-c - Support library with platform independent types, macros, etc for Zydis
  • Zthread - Platform-independent object-oriented C++ threading library
  • Zookeeper - Coordination Service for Distributed Applications
  • Zls - Zig LSP implementation + Zig Language Server
  • Zfp - High throughput library for compressed floating-point arrays
  • Zeal - Offline documentation browser
  • Zapcc - C++ caching compiler based on clang
  • Zanata-platform - Web-based translation platform
  • Zanata-cli - Zanata Java command line client
  • Z88dk - Complete Z80/Z180 development kit
  • Z80ex - ZiLOG Z80 CPU emulator library
  • Z80asm - Assembler for the Z80 microprocessor
  • Z80-asm - Z80 assembly code assembler and disassembler