phptal / PHPTAL

PHP Template Attribute Language — template engine for XSS-proof well-formed XHTML and HTML5 pages
http://phptal.org
GNU Lesser General Public License v2.1
175 stars 43 forks source link

Allow backslashes in tales modifiers, so we can use namespaced classes. #19

Closed Drarok closed 11 years ago

Drarok commented 11 years ago

This patch simply allows the blackslash to be used in TALES, e.g.

<tal:inline tal:content="Ztal\Tales\Generic.someMethod:input1,input2" />
Ocramius commented 11 years ago

Can you add a (skipped in PHP < 5.3) test like https://github.com/pornel/PHPTAL/blob/master/tests/input/php-mode.01.xml ?