karver icon indicating copy to clipboard operation
karver copied to clipboard

Improve if statements

Open sourrust opened this issue 12 years ago • 0 comments

As of commit 7f62a10541, karver only evaluates logic of the if statement as a check for a variable's existence.

Example:

{% if title %}
  <title>{{ title }}</title>
{% else %}
  <title>No Title</title>
{% endif %}

It would be nice to implement some of the suggested features list in said comment.

That list being:

  • [ ] basic logically comparisons (is (==), isnt (/=), >, <, >=, <=)
  • [ ] elseif expressions
  • [x] format the inside of the if statement better (ie. indention)

sourrust avatar May 30 '13 04:05 sourrust