Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve if statements #1

Open
1 of 3 tasks
sourrust opened this issue May 30, 2013 · 0 comments
Open
1 of 3 tasks

Improve if statements #1

sourrust opened this issue May 30, 2013 · 0 comments

Comments

@sourrust
Copy link
Owner

As of commit 7f62a10, 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
  • format the inside of the if statement better (ie. indention)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant