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

documentation not up to date with latest features #58

Open adjenks opened 7 years ago

adjenks commented 7 years ago

I recently used the features described in the NEWS section:

PHPTAL 1.3.0 2014-03-16

Added support for closures
Added support for namespaced classes in TALES modifiers
Added default json and urlencode modifiers
...

In particular the urlencode modifiers.

I was looking everywhere how to do it, but I couldn't find them in the documentation, only in the NEWS section. I'm glad they are there, and they work, even inside of escaped variables like so:

 <a tal:attributes="href string:http://www.example.com/${urlencode:myVarWithBadCharacters}">test</a>

which is awesome, but documentation should really be there.

kornelski commented 7 years ago

I'm watching the website subproject. If you push changes there I'll update the site.