Skip to content

Instantly share code, notes, and snippets.

@thatisuday
Created March 22, 2018 19:34
Show Gist options
  • Save thatisuday/1ed4113fc8a132bb4f8330d5251bde0d to your computer and use it in GitHub Desktop.
Save thatisuday/1ed4113fc8a132bb4f8330d5251bde0d to your computer and use it in GitHub Desktop.
//- Like PHP, we can include content of another file in a file.
//- If another file extension is `.pug`, then it's content will be compiled.
//- If another files is non-pug file, then it's content will be included as raw text.
//- If no file extenstion is given, `.pug` is automatically appended to the file name.
doctype html
html
head
title Includes Example
include includes/resources.pug
style
include includes/style.css
body
h1 Hello World
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment