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

Support :if, :else statements #66

Open
betamos opened this issue May 15, 2012 · 1 comment
Open

Support :if, :else statements #66

betamos opened this issue May 15, 2012 · 1 comment

Comments

@betamos
Copy link

betamos commented May 15, 2012

I encountered a couple of unexpected behaviors in the :if plugin.

:if foo
  %p This
:else
  %p That

would be a great feature. I understand if it's difficult to implement this in the current parsing logic.

Also :if foo will yield an error if foo is not defined on the object. You need to type something like :if typeof foo != 'undefined' now which is kind of meh.

Thanks for a great template engine.

@mahemoff
Copy link

mahemoff commented Jul 5, 2012

+1 came here to say this.

Thanks also for a great template engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants