a-chernykh / railsbox

Fast and easy Ruby on Rails virtual machines
https://railsbox.io
MIT License
320 stars 52 forks source link

resolves #37, jinja if conditional without else returns undefined #38

Closed arifb closed 8 years ago

arifb commented 8 years ago

See #37 - when the conditional was evaluating to false, jinja returns an undefined object. From http://jinja.pocoo.org/docs/dev/templates/#if-expression

The else part is optional. If not provided, the else block implicitly evaluates into an undefined object

a-chernykh commented 8 years ago

Thanks, @arifb