Skip to content
This repository was archived by the owner on May 24, 2024. It is now read-only.

Unique template ID#9

Open
andyinabox wants to merge 1 commit into
dane-harnett:masterfrom
andyinabox:uuid
Open

Unique template ID#9
andyinabox wants to merge 1 commit into
dane-harnett:masterfrom
andyinabox:uuid

Conversation

@andyinabox

Copy link
Copy Markdown

This is an attempt to address the issue mentioned in #8. I'm appending a uuid to the template id, using UUID.js:

  var template = twig({
    id: id+'?uuid='+uuid.generate(),
    data: minified
  });

This is a pretty quick fix but I thought I'd at least throw it out there...

@dane-harnett

Copy link
Copy Markdown
Owner

Thanks for the PR @andyinabox! out of curiosity are you using this module in any projects? Any reasons for not using webpack & react?

@andyinabox

Copy link
Copy Markdown
Author

@dane-harnett I'm prototyping with budo/browserify — not really a good use-case for react (and not a big fan of webpack).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants