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

multiple options { tags: [] } override each other before gulp task start working #69

Open
perymimon opened this issue Sep 9, 2019 · 2 comments

Comments

@perymimon
Copy link

perymimon commented Sep 9, 2019

the is tags options written directly to mustache instance before pipe working so when gulp pipe run just the last definition work.

if (options.tags) {
    mustache.tags = options.tags
  }

Example:

return Combine(
        mustache(templateObject2,{
            tags: ['${', '}']
        }),
        mustache(templateObject1,{
            tags: ['{{', '}}'] // just that one will work/ 
        }),
@rogeriopvl
Copy link
Owner

rogeriopvl commented Sep 9, 2019

@perymimon what is Combine? And do you have a concrete use case for your example?

@perymimon
Copy link
Author

like you see in the example. i use different match brackets for two differents objects

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

No branches or pull requests

2 participants