Posted By

halk on 11/18/12


Tagged

regex class php template


Versions (?)

Regex Clipboard Class (Mini-Template Engine)


 / Published in: PHP
 

https://gist.github.com/4098493 (examples of use below the class code) This class allows you to load a file of snippets that are really mini-templates copy them from your repository fill the token slots in them the with your data and render them as part of the view. See example below the code for the format of the snippet file.

Report this snippet  

You need to login to post a comment.