Simple template parser for PHP
During the development of sourceXchange I wrote a small template parser, named Temply, which is able to handle single (closed) tags as well as nested block tags. Also, custom attributes can be assigned to tags to control their behaviour.
The parser is pretty easy to use and can be freely extended using a simple interface. The whole thing consists of just three relatively small PHP classes. It is not a full blown template engine like – for example – Smarty. It has no caching mechanisms (yet) and there are no predefined tag libs included. But I think this might as well be an advantage in some cases.
Today, I'm releasing the package in the Downloads-section under the LGPL. Coding examples are included within the downloadable archive, to help you get started.
18. Juni 2010 - 22:10 Uhr
Comments (0)
Leave a comment, if you want to! Marked fields (*) are mandatory.
Languages
Categories
- Unfiltered
- Common
- Notices
- Release notes
- Development
- Curios
- Robotics
Recent blog entries
- Happy new year!
- PADEdit 1.3 released
- Task Till Dawn 1.7 released
- Task Till Dawn as Mac Gem
- OS X Chess
- Happy new year!
- Task Till Dawn 1.6 released
- PADEdit 1.2 released
- Feedback-bug in PADEdit 1.1
- Task Till Dawn at com-magazin
- Simple template parser for PHP
- Online again
- New Job
- Lock-UnMatic 1.4 released
- Lock-UnMatic 1.3 released
Recent comments
- gkgold90 on
Task Till Dawn - Helmut Bismark on
Task Till Dawn 1.7 released - tim bowers on
Task Till Dawn - Oliver Matuschin on
Lock-UnMatic 1.3 released - Gerry on
Task Till Dawn - Dave on
Lock-UnMatic 1.3 released - chris on
Task Till Dawn - wt123 on
Task Till Dawn - Elad on
Task Till Dawn - quaid on
Task Till Dawn - Erin on
Lock-UnMatic - Oliver Matuschin on
Task Till Dawn - Oliver Matuschin on
Task Till Dawn



