Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple compactJsHtml functions #24

Open
TrevorBurnham opened this issue Oct 28, 2012 · 1 comment
Open

Multiple compactJsHtml functions #24

TrevorBurnham opened this issue Oct 28, 2012 · 1 comment

Comments

@TrevorBurnham
Copy link

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()
@serby
Copy link
Owner

serby commented Oct 29, 2012

Yeah, I quite like this idea. I'll take a look if it can easily be added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants