PHPTAL
PHPTAL copied to clipboard
documentation not up to date with latest features
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.
I'm watching the website subproject. If you push changes there I'll update the site.