Open studious opened 3 weeks ago
I can't reproduce. Could you give me not working erb file?
Oh before I forget, your install instruction seems to reference a misspelled version of your npm package. I had to search for it on the npm registry even though your prettierrc snippet listed it correctly.
Onto the parsing issue. Here is the smallest reproducible portion that caused the error I was seeing.
<%- if !!flash[:errors] %>
<%- flash[:errors].each do |error| %>
<p style="color: red"><%= error %></p>
<% end -%>
<% end -%>
You can see two attempts in my screenshot below.
-
from the erb start and end tags.
I can successfully run this plugin on some templates but not others
After looking at the source I figured it might be that the trimming notation on tags hasn't been catered for
https://www.puppet.com/docs/puppet/5.5/lang_template_erb#tags