Re:Walrus.js - Mustache on steroids
by moe on Thursday June 28, 2012 @07:50AM
(#4171200)
I agree wholeheartedly.
Logic-less templates are a red herring and I cringe every time I enter a project where someone has drunken the Kool-Aid.
There's the rare fringe use-case where logic-less templates make sense, e.g. when you need to accept templates from untrusted sources (user editable) or when you really can re-use them across tiers to a significant degree.
In pretty much all projects neither is the case.
Instead, they quickly turn into a ball on a chain that constantly gets in the way and causes more problems than it solves.
This is my experience from encountering them in nearly a dozen projects and from having fallen for the temptation more than once myself.
Logic-less templates are a red herring and I cringe every time I enter a project where someone has drunken the Kool-Aid.
There's the rare fringe use-case where logic-less templates make sense, e.g. when you need to accept templates from untrusted sources (user editable) or when you really can re-use them across tiers to a significant degree.
In pretty much all projects neither is the case.
Instead, they quickly turn into a ball on a chain that constantly gets in the way and causes more problems than it solves.
This is my experience from encountering them in nearly a dozen projects and from having fallen for the temptation more than once myself.