iamvery / ratchet

Plain HTML Templates
https://hexdocs.pm/ratchet
MIT License
27 stars 3 forks source link

Doesn't like quotes inside quotes for some reason... #48

Closed iamvery closed 8 years ago

iamvery commented 8 years ago

e.g. <div class="<%= "foo" %>"></div> seems to mess up the rendering

iamvery commented 8 years ago

Turns out the quotes are messing up Floki parsing. EEx only happens to parse correctly by Floki otherwse. It's not an official feature, as Floki is built to handle HTML not EEx. Further, using EEx in your ratchet templates is discouraged and might be removed, so we won't bother fixing this.