17
E 'possibile aggiungere commenti non html in underscore.js o lodash?È possibile aggiungere un commento non html nei template underscore.js o lodash?
Qualcosa di simile:
<%-- We do this here because... %>
In modo che il commento non è nel codice HTML generato risultante?
se scrivo:
<!-- We do this here because... -->
Il commento è nel codice HTML risultante.
Grazie.
Vuoi dire all'interno di un modello? Altrimenti, usa solo commenti JS – Bergi