evanthegrayt / planter

🪴 Framework for seeding your rails application.
MIT License
4 stars 0 forks source link

Remove default erb trim_mode but allow user to configure #30

Closed evanthegrayt closed 2 years ago

evanthegrayt commented 3 years ago

'<>' trim mode default for ERB is problematic for rows that have erb at beginning and end of row. We should remove the trim mode default, but allow an option to be passed that sets it.

Allowed options should be

%  enables Ruby code processing for lines beginning with %
<> omit newline for lines starting with <% and ending in %>
>  omit newline for lines ending in %>
-  omit blank lines ending in -%>