I once read this, because I wanted to see if handlebars is the right view engine for me or rather something else.
A thing that I wonder since then is the following, why is it considered bad, if a view engine
encourages logic in templates?
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.Sign up to join this community
The concern of templates is visual display of information. Business logic doesn't play any part in that.
User interfaces can contain short loops that iterate over lists. It can also contain validation logic and things like AJAX that improve interactivity. Beyond that, it's generally all server-side, unless the application is self-contained.