Skip to content

Instantly share code, notes, and snippets.

@TimothyGu
Created August 22, 2016 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimothyGu/8ac673dff4425de8b92e3d402337211e to your computer and use it in GitHub Desktop.
Save TimothyGu/8ac673dff4425de8b92e3d402337211e to your computer and use it in GitHub Desktop.
extend layout.jade
block content
p Content
if true
block content
else
body
block content
// $ npm i jade pug
require('pug').renderFile('index.jade')
//=> ''
require('jade').renderFile('index.jade')
//=> '<p>Content</p>'
// $ npm i https://github.com/pugjs/pug-linker.git#jade-compat
require('pug').renderFile('index.jade')
//=> '<p>Content</p>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment