Created
March 9, 2012 17:20
-
-
Save kazupon/2007621 to your computer and use it in GitHub Desktop.
jade template inheritance
This file contains hidden or 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
!!! 5 | |
html | |
head | |
h1 My Site | |
block scripts | |
script(src="/jquery.js") | |
body | |
block header | |
header | |
p some header content | |
block content | |
block footer | |
footer | |
p some footer content |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<h1>My Site | |
</h1> | |
<script src="/jquery.js"></script> | |
<script src="/underscore.js"></script> | |
</head> | |
<body> | |
<header> | |
<p>some header content | |
</p> | |
</header> | |
<footer> | |
<p>some footer content | |
</p> | |
</footer> | |
</body> | |
</html> |
This file contains hidden or 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
extends ./base | |
block append scripts | |
script(src="/underscore.js") | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<h1>My Site | |
</h1> | |
<script src="/hoge.js"></script> | |
<script src="/underscore.js"></script> | |
<script src="/jquery.js"></script> | |
</head> | |
<body> | |
<header> | |
<p>some header content | |
</p> | |
</header> | |
<footer> | |
<p>some footer content | |
</p> | |
</footer> | |
</body> | |
</html> |
This file contains hidden or 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
extends ./base | |
block append scripts | |
script(src="/underscore.js") | |
block prepend scripts | |
script(src="/hoge.js") | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<h1>My Site | |
</h1> | |
<script src="underscore.js"></script> | |
<script src="/jquery.js"></script> | |
</head> | |
<body> | |
<header> | |
<p>some header content | |
</p> | |
</header> | |
<footer> | |
<p>some footer content | |
</p> | |
</footer> | |
</body> | |
</html> |
This file contains hidden or 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
extends ./base | |
block prepend scripts | |
script(src="underscore.js") | |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<h1>My Site | |
</h1> | |
<script src="/underscore.js"></script> | |
</head> | |
<body> | |
<header> | |
<p>some header content | |
</p> | |
</header> | |
<h1>title | |
</h1> | |
<p>hello world | |
</p> | |
<footer> | |
<p>some footer content | |
</p> | |
</footer> | |
</body> | |
</html> |
This file contains hidden or 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
extends ./base | |
block scripts | |
script(src="/underscore.js") | |
block content | |
h1 title | |
p hello world | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment