News for hackers. Stuff that matters.
Re:Slim - A Fast, Lightweight Template Engine for Ruby by spooneybarger on Friday July 29, 2011 @07:00AM (#2821166)
How can you call something logic-less and then immediately proceed to discuss conditionals? True/False is logic.

http://slim-lang.com/logic-less.html

I'm a big fan of logic-less templating systems, I've used logic-less templating systems, I've written a logic-less templating system and this is no logic-less templating system. It does a nice job of making the logic seem less obtrusive, but it is not without logic.

Re:Slim - A Fast, Lightweight Template Engine for Ruby by stonean on Friday July 29, 2011 @11:29AM (#2822291)
You can't completely remove logic from the view, but you can enforce LESS logic. In other words, you are not free to dump a lot of code into the view, there are restrictions.

This is term is used by Mustache as well. http://mustache.github.com/

Re:Slim - A Fast, Lightweight Template Engine for Ruby by spooneybarger on Friday July 29, 2011 @10:52PM (#2824703)
No. You can completely remove logic from the view. I've used more than 1 templating system that does exactly that and have written one.
Re:Slim - A Fast, Lightweight Template Engine for Ruby by wccrawford on Friday July 29, 2011 @07:06AM (#2821179)
It looks like they're trying to say you can use it without writing your own conditionals, and it'll do a LOT of magic on the backend for you.
Re:Slim - A Fast, Lightweight Template Engine for Ruby by spooneybarger on Friday July 29, 2011 @07:14AM (#2821198)
which is nice feature for cleaning up logic in templates and making standard logical tests nicer to look at it but is misnamed as 'logic-less'.