Skip to content

Speeding up Jade in production #2

@plievone

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.

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