compact
compact copied to clipboard
Multiple compactJsHtml functions
Because there's only one compactJsHtml function, compact doesn't allow you to create, say, one set of JS files to be concatenated in the <head> and another set to be concatenated at the end of the <body>.
How about an API that looks like this:
// Express configuration
app.use(compact.middleware({
head: ['namespace1'],
foot: ['namespace2']
});
// Jade template
html
head
!= compact.head.html()
body
block content
!= compact.foot.html()
Yeah, I quite like this idea. I'll take a look if it can easily be added.