Skip to content

Provide a better logger helper #956

@kpdecker

Description

@kpdecker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions