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

Conditionals #8

Open
facerix opened this issue May 12, 2013 · 1 comment
Open

Conditionals #8

facerix opened this issue May 12, 2013 · 1 comment
Assignees

Comments

@facerix
Copy link
Owner

facerix commented May 12, 2013

The templating functionality would be much more useful if it supported conditional blocks, like so:

button#btnAgree(agree==true ? "class=checked" : ""){I Agree}
<button#btnDisagree(agree==false ? "class=checked" : ""){Disagree}

I realize we need to have some kind of eval-like method in order to do this, and I realize the security implications, but the templating function just isn't robust enough to be usable in a lot of cases where it would otherwise be very nice to have (e.g. widgets without any external dependencies on jquery/handlebars/etc).

@ghost ghost assigned facerix May 12, 2013
@facerix
Copy link
Owner Author

facerix commented Jul 29, 2015

Partially addressed by 984d73b; documentation and certain edge cases not yet complete.

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

1 participant