PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 447 All time: 6,165 This week: 346Up
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
Age: 43
All time rank: 90714 in Australia Australia
Week rank: 441 Up4 in Australia Australia Up

  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  
This week:0
All time:6,165
This week:346Up
For more information send a message to info at phpclasses dot org.