Skip to content

Jemplate block names in different files can collide #8

@AndrewRayCode

Description

@AndrewRayCode

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions