ramasilveyra / unreact

Convert React Components to EJS or Pug [Alpha][Unreleased]
MIT License
14 stars 3 forks source link

ejs attributes expressions with string interpolation or string literals #1

Closed ramasilveyra closed 6 years ago

ramasilveyra commented 6 years ago

Bug:

<span<% if (![null,undefined].includes(`event-img ${type}`)) { %> class="<%= `event-img ${type}` %>"<% } %>></span>

Expected:

<span class="<%= `event-img ${type}`></span>