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 enough user ratingsTotal: 448 All time: 6,197 This week: 560Up
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: 45
All time rank: 91114 in Australia Australia
Week rank: 321 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  
 0%
Total:448
This week:0
All time:6,197
This week:560Up