Includes

include lets you insert another template file into the current template.

For example:

doctype html

html
  head
    include includes/head.jade

  body
    h1 Welcome

    include includes/footer.jade

This makes it easier to divide large templates into smaller files.

Including plain text

Includes can also bring CSS, JavaScript or other text files into a template.

style
  include styles.css

Relative paths are resolved from the current template, while absolute includes can be resolved using the configured base directory.

Jade Language © 2026 | About Us | Privacy Policy