Skip to content

Add line number in handlebars exceptions #156

Closed

Description

@couellet

It would be awesome to have line numbers in exceptions thrown when compiling templates.

We are using your library (awesome btw) to add a email template editor in the dashboard of our SAAS directly and it would be nice to display nice errors to the customer when he saves the template ;)

We'll try to contribute on it if we can find some time! Keep up the good work.

Activity

  1. rexm commented on Oct 5, 2016

    @rexm
    Member

    That's an interesting problem, since after the initial lexer pass, we don't have any context that would tell us what line number traces back to the logical syntax word we're trying to turn into a valid expression!

  2. rexm commented on Apr 27, 2019

    @rexm
    Member

    This is being considered in the 2.0 roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions