Fluid is the next generation templating engine, that will be used in TYPO3 Phoenix. It was backported to TYPO3 v4 so everyone can enjoy the advantages of a full templating engine. But what are those advantages?
Susanne Moog has written an article that gives you insight into what Fluid is about and what it is capable of. According to Susanne you get quick results with a minimal amount of fuss. Fluid is for you! The only requirement is that you are willing to learn!
typo3.org/development/articles/fluid-next-generation-templating/
comments
thanks for this great article!
Greets,
Sebastian
Worked with Smarty before, but I found Fluid much easier to work with and really easy to extend with own ViewHelpers
Don't forget this for the Fluid:
$this->objectFactory = t3lib_div::makeInstance('Tx_Fluid_Compatibility_ObjectFactory');$this->objectFactory->create($viewHelperName);
Properly written Smarty extension will require only
require_once('smarty_engine_class');
1. You still need "$addressObjects = [fetch data];" - no advantages.
2. foreach/if/ifelse/for do exist in Smarty for awhile.
3. What about Smarty's modifiers - there are tons of them, from formatting phone (with/wo extension to typo3 plug-ins), when you can put |format_phone and it will display something like +1 (880) 123-5678 from the just a string value?
4. Fluid foreach? Where's key, first, last? (yeah, maybe Fluid's FOR has it)
And so on, read http://wiki.typo3.org/index.php/Fluid and see how many PHP variable you have to assign before using it.
Add comment