Created
August 22, 2016 08:21
-
-
Save TimothyGu/8ac673dff4425de8b92e3d402337211e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extend layout.jade | |
block content | |
p Content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if true | |
block content | |
else | |
body | |
block content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ 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