Command Line

Template compilation can be incorporated into a Node.js development workflow using the project’s command-line tooling.

A typical workflow is:

Jade source
    ↓
Template compiler
    ↓
HTML

For example, a template such as:

doctype html

html
  body
    h1 Hello

can be compiled into the corresponding HTML document.

Use npm scripts

Rather than relying on global installations, modern Node.js projects commonly keep development dependencies inside the project and expose commands through package.json.

{
  "scripts": {
    "build:templates": "..."
  }
}

This makes the build process reproducible across development environments.

Automation

Template compilation can be incorporated into:

development builds
static-site generation
application deployment
asset pipelines
continuous integration

For current command-line usage, verify the CLI provided by the implementation/version you’re using rather than assuming historical Jade commands remain unchanged.

Jade Language © 2026 | About Us | Privacy Policy