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

Breaking _.templates #14

Open
Winni- opened this issue Apr 26, 2017 · 3 comments
Open

Breaking _.templates #14

Winni- opened this issue Apr 26, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@Winni-
Copy link

Winni- commented Apr 26, 2017

Turning

<% _.each(arr_lang, function(item, i) { %>
	<option value="<%=item.id%>" <%if (item.id == lang){%>selected="selected" <%}%>><%=item.name%> (<%=item.alias%>)</option>
<% }); %>

to this

<% _.each(arr_lang,="" function(item,="" i)="" {="" %="">
	<option value="<%=item.id%>" <%if="" (item.id="=" lang){%="">selected="selected" <%}%>><%=item.name%> (<%=item.alias%>)</%=item.alias%></%=item.name%></%}%></option>
<% });="" %="">

Strange ="" everywhere!

@viktorlarsson
Copy link
Owner

That's wierd! I'll have a look at it!

@viktorlarsson viktorlarsson self-assigned this Apr 27, 2017
@Winni-
Copy link
Author

Winni- commented Apr 27, 2017

Found out that htmlparser2 does not support any template tags, and author not willing to implement them.
Add support for templates tags #162

@viktorlarsson
Copy link
Owner

I'll see if I can ditch cheerio!

@viktorlarsson viktorlarsson added this to the 0.1.16 milestone Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants