You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to specify the regexp for substitutions.
Currently, I'm using {%= %}. Eg. {%= name %}
I would expect that any other pattern is ignored. However, {% name %} will be replaced by the empty string - not at all what I expected.
This is the result of a quick test:
{%= name %}
{% name %}
{{% name %}}
<%= name %>
will be replaced by
MyProject
{}
<%= name %>
The second and third line don't seem to be right. They should be ignored.
The original use case I had was scaffolding django templates, that also use the {% %} syntax. So, I'd like to be able to ignore those completely.
Any idea how to do that?
The text was updated successfully, but these errors were encountered:
dschien
changed the title
Change replace regexp and ignore {% %}
Ignore {% %} patterns
Apr 16, 2014
Hi,
I'd like to be able to specify the regexp for substitutions.
Currently, I'm using {%= %}. Eg. {%= name %}
I would expect that any other pattern is ignored. However, {% name %} will be replaced by the empty string - not at all what I expected.
This is the result of a quick test:
will be replaced by
The second and third line don't seem to be right. They should be ignored.
The original use case I had was scaffolding django templates, that also use the {% %} syntax. So, I'd like to be able to ignore those completely.
Any idea how to do that?
The text was updated successfully, but these errors were encountered: