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

Custom tags are not working for partials #678

Closed
stackchain opened this issue Sep 27, 2018 · 1 comment
Closed

Custom tags are not working for partials #678

stackchain opened this issue Sep 27, 2018 · 1 comment

Comments

@stackchain
Copy link
Contributor

If you use custom tags like <% it works only for the template main file, all partials inside don't keep this configuration, the partials only work with the standard tag {{.

Template
{
my_hi_message: "hi",
my_hi_message_2: "yo"
}

File1.txt
<% my_hi_message %>
<%> my_partial_file.txt %>

My_Partial_File.txt
<% my_hi_message_2 %>

Output:
hi
<% my_hi_message_2 %>

---- If I keep the original tag {{ inside partials it works, it looks like subRender problem.
File1.txt
<% my_hi_message %>
<%> my_partial_file.txt %>

My_Partial_File.txt
{{ my_hi_message_2 }}

Output:
hi
yo

stackchain pushed a commit to stackchain/mustache.js that referenced this issue Sep 28, 2018
@phillipj
Copy link
Collaborator

v3.0.1 just got published including your fix in #679.

Thanks again!

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