TheProjecter / jxtl

Automatically exported from code.google.com/p/jxtl
Apache License 2.0
0 stars 0 forks source link

Support Boolean Logic #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
While "and" and "or" probably violate the model view separation, they can 
really simplify some things in the template.  They can also be simulated using 
nested statements, so it's at least questionable whether it violates the 
separation.

We should allow the following to be valid:

{{ expr[cond1 || cond2] }}
{{ expr[cond1 && cond2] }}

Original issue reported on code.google.com by rinehi...@gmail.com on 20 Jun 2014 at 8:15