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

Provide a better logger helper #956

Closed
kpdecker opened this issue Feb 7, 2015 · 0 comments
Closed

Provide a better logger helper #956

kpdecker opened this issue Feb 7, 2015 · 0 comments
Labels
Milestone

Comments

@kpdecker
Copy link
Collaborator

kpdecker commented Feb 7, 2015

Right now it's very confusing to use the logger as a given template can only have one level of logging and only one parameter. While it's probably best if users don't leave logging in their templates, we should allow them to have per-statement level logging, etc.

Strawman:

{{log "foo" bar "baz" level="debug"}

This is related to wycats/handlebars-site#91

@kpdecker kpdecker modified the milestones: Backlog, Next Feb 7, 2015
@kpdecker kpdecker modified the milestones: Backlog, Next Aug 1, 2015
flenter pushed a commit to flenter/handlebars.js that referenced this issue Aug 27, 2015
Adds multiple variable support and the ability to set statement level logging semantics.

This breaks that logger API, cleaning up the manner in which enums are set, but the other behaviors are backwards compatible.

Fixes handlebars-lang#956
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant