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

Expressions cannot start with a number? #581

Open
enorm opened this issue Mar 31, 2017 · 1 comment
Open

Expressions cannot start with a number? #581

enorm opened this issue Mar 31, 2017 · 1 comment

Comments

@enorm
Copy link

enorm commented Mar 31, 2017

Hi,

I cannot compile templates that contain expressions that start with a number like {{ 1 }} or {{ 128T }}. But native Handlebars.js seems to support this.

Minimal code example:

Handlebars handlebars = new Handlebars();
try {
    handlebars.compileInline("{{ 1 }}"); // throws HandlebarsException
} catch (IOException e) {
    // Should not happen
}

I am using version 4.0.6.

This issue might be similar to #573 .

Best regards,
Norman

@jknack
Copy link
Owner

jknack commented May 25, 2018

I'm afraid it is not an easy fix, will leave it open

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

No branches or pull requests

2 participants