PHP Classes
elePHPant
Icontem

template_bv: Template engine based on token splitting not regex

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2006-02-28 (10 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 444 All time: 5,912 This week: 1,032Up
Version Licenses Categories
template_bv 1.0BSD License, GNU ...Templates
Description Author

Template_bv is a minimalist templating engine that is extremely fast, does not use regular expressions and can easily be extended.

The main idea is based on "splitting" a predefined template at given delimiter marks.

The class splits the template string using the PHP explode function and a configurable token string to find where template variable placeholders are located. By using this method we don't need to use regular expression to locate the template variables.

This template engine would suite someone who likes to embed HTML inside of PHP and not the other way around.

It can assign values to be replaced by placeholder marks, as well as, define values to insert before (prepend) or after (append) those marks.

Picture of Ben Vautier
Name: Ben Vautier <contact>
Classes: 2 packages by
Country: Australia Australia

  Files folder image Files  
File Role Description
Plain text file class.template_bv.php Class main class
Accessible without login Plain text file example.php Example example
Accessible without login Plain text file main.tpl Data template

 Version Control Unique User Downloads Download Rankings  
 0%
Total:444
This week:0
All time:5,912
This week:1,032Up