RandomEtc / ejs-locals

Express 3.x layout, partial and block template functions for the EJS template engine.
298 stars 63 forks source link

what does trailing - do? #18

Closed ralyodio closed 11 years ago

ralyodio commented 11 years ago

<% layout('boilerplate') -%>

what does trailing - do?

ralyodio commented 11 years ago

found it:

Note, if you haven't seen it before, this example uses trailing dashes in the EJS includes to slurp trailing whitespace and generate cleaner HTML. It's not strictly necessary.