Author Topic

Sylvain Bannier

Tuesday 20 March 2007 3:24:41 am

Comment47920

Hi

I'm working on syntax validation with Nicolas. Currently, we rely on eZTemplate::validateTemplateFile() to check template syntax. It works fine for basic errors like parenthesis or bracket match, but it doesn't check control structures consistency.

For instance, a template without a complete "if" statement like this doesn't reveal any error or warning :

{if true()}

Though, these kind of errors appear in debug. Does anybody know where I can find methods to perform advanced syntax validation ?

Thanks.

http://www.smile.fr