Tuesday, 20 August 2013

Which CodeIgniter Template Library fits requirements?

Which CodeIgniter Template Library fits requirements?

I would like to use tags like {{headline}} in the CodeIgniter views
instead of PHP and I'm looking for a template parser. CodeIgniter has a
built-in template parser:
http://www.ellislab.com/codeigniter/user-guide/libraries/parser.html
The question is if it's better to use the built-in parser or another
parser? Are there any limitations with the CI template parser like not
supporting loops, if statements, etc.?
If so, there are a number of other parsers but it seems that a developer
works on them for some time and then it falls into a numb state when it's
not supported any more. I'm looking for a parser which will also be
supported in a year:
Bucket http://backstack.ca/projects/bucket/
Comper Template Parser http://parser.comper.sk/en/
Ocular-Template-Library
http://github.com/lonnieezell/Ocular-Template-Library
Phil Sturgeon Template library
http://philsturgeon.co.uk/code/codeigniter-template
PyroCMS Lex Parser http://github.com/pyrocms/lex
Template Library for CodeIgniter
http://www.williamsconcepts.com/ci/codeigniter/libraries/template/
The most active seem to be Comper and Lex Parser. What is the difference
between Phil Sturgeon Template library and PyroCMS Lex Parser because it's
the same developer?
What I am looking for is: - Separation of PHP and HTML/CSS in views -
Solidly supported so that it's not stalled within a year - Use of simple
tags but also loops, if statements and other functions
Can anyone give me a tip? The existing information on the CI forum or
elsewhere have not been really useful.
Many thanks!
Philip

No comments:

Post a Comment