Skip to content

Speeding up Jade in production #2

Description

@plievone

There are a few options you can set for Jade template compilation when in socket stream production mode to speed Jade up:

  • {compileDebug: false} -- this strips debug instrumentation (line numbers) from compiled templates.
  • {self: true} -- optionally, this moves the locals under a self object, thus avoiding the slow with block in compiled templates.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions