|
|
|
|
|
by Drew_
1780 days ago
|
|
Like any templating engine there's always just enough power given to have the ability to write something stupid or complex in the template. Again not really a problem in practice. The scary underscore expression you're referring to can easily just be written as a reversedList variable in "normal" JS and get referenced plainly in the template. So the template expression syntax never has to be as messy as you might think it is. |
|
My point is that when your templating language starts doing things like this (and inevitably, all of them do) - you've created a new programming language that is generally less thought out as one than deliberately made programming languages. Although the above for loop is evaluating JS, the syntax is decidedly not JS.