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

Ignore {% %} patterns #80

Open
dschien opened this issue Apr 14, 2014 · 0 comments
Open

Ignore {% %} patterns #80

dschien opened this issue Apr 14, 2014 · 0 comments

Comments

@dschien
Copy link

dschien commented Apr 14, 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:

{%= 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?

@dschien dschien changed the title Change replace regexp and ignore {% %} Ignore {% %} patterns Apr 16, 2014
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

1 participant