Skip to content

Instantly share code, notes, and snippets.

@EloB
Last active August 29, 2015 14:12
Show Gist options
  • Save EloB/85f06cc95276223e2486 to your computer and use it in GitHub Desktop.
Save EloB/85f06cc95276223e2486 to your computer and use it in GitHub Desktop.
Jade bug?
block content
mixin test()
.test&attributes(attributes)
+test()
{
"scripts": {
"postinstall": "echo 'Test 1' && ./node_modules/.bin/jade < test1.jade && echo '' && echo 'Test 2:' && ./node_modules/.bin/jade < test2.jade && echo ''"
},
"dependencies": {
"jade": "1.8.2"
}
}
extends ./extends
block content
include ./include
extends ./extends
block content
include ./include
include ./include
@EloB
Copy link
Author

EloB commented Dec 23, 2014

test1.jade output:

<div class="test test"></div>

test2.jade output:

<div class="test"></div><div class="test test"></div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment