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

Jemplate block names in different files can collide #8

Open
AndrewRayCode opened this issue Apr 22, 2012 · 0 comments · May be fixed by #31
Open

Jemplate block names in different files can collide #8

AndrewRayCode opened this issue Apr 22, 2012 · 0 comments · May be fixed by #31

Comments

@AndrewRayCode
Copy link

If two files have blocks named the same thing, compiling them redeclares the block twice in the output.

Jemplate.templateMap['block'] = function(context) { // I am from bob.tt!

...

Jemplate.templateMap['block'] = function(context) { // I am from cow.tt!

So if you have two files each with a block named 'block', and you render a template that uses that block, you have no idea which one you are going to get! Sadness.

choroba added a commit to choroba/jemplate that referenced this issue Jan 22, 2017
Fixes ingydotnet#8.

Duplicate block name in the same file can't be reported from Jemplate,
we need to fix Template instead (in progress).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant