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

Compile template failed for nested arguments #1978

Closed
cybertk opened this issue Dec 16, 2014 · 3 comments
Closed

Compile template failed for nested arguments #1978

cybertk opened this issue Dec 16, 2014 · 3 comments
Labels

Comments

@cybertk
Copy link

cybertk commented Dec 16, 2014

Given template like this:

t = "{{foo.bar}} foo {{foo.foo.bar}}"

When compiled the template without data,

_.template(t)()

it failed with

TypeError: Cannot read property 'd' of undefined
@megawac
Copy link
Collaborator

megawac commented Dec 17, 2014

Nested lookups on objects which don't exists probably should be documented

@Florian-R
Copy link
Contributor

Nested lookups on objects which don't exists probably should be documented

Maybe #1973 is sufficient?

@cybertk
Copy link
Author

cybertk commented Dec 17, 2014

Why it's invalid? It's not the use case of underscore?

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

4 participants