Quote from: BobRay at Jul 31, 2008, 02:32 PM
The way I thought of it, they would just become Smarty placeholders. Smarty calls them "variables" (which they are) and they are more powerful than placeholders in that they can include "modifiers" They’re set off by curly braces and the "modifier" is the part after the "|".
User Information:<p>
Name: {$name|capitalize}<br>
Addr: {$address|escape}<br>
Date: {$smarty.now|date_format:"%Y-%m-%d"}<br>
You can see more here: http://www.smarty.net/crashcourse.php
You mean they used to be more powerful than MODx placeholders...
As of Revolution, all tags have "modifiers" in MODx and you can configure custom filtering functions to extend the built-in behavior of these "modifiers". In MODx this is now known as InputFilters and OutputFilters, and I think once some innovative site developers start working with these facilities, you’ll start to see some really amazing solutions that can apply to placeholders, or any tag output returned by a snippet, chunk, TV, etc.
And we’re not going to replace the MODx parser with Smarty, at least not while I’m here. It’s simply used instead of the MODx parser in some contexts (e.g. mgr), and giving developers the possibility of incorporating existing sites developed in Smarty into a MODx managed site (which could easily be done using a context and the Resource import facilities; just import all your tpl and controller files as static resources, so they can be managed in the tree).