Skip to content

Multiple compactJsHtml functions #24

Description

@TrevorBurnham

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()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions