Created
February 26, 2015 20:06
-
-
Save danneu/c72b9e3d6b5e0cd4ea21 to your computer and use it in GitHub Desktop.
koa + swig
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
<body> | |
<!-- Global navigation --> | |
<ul id="navigation"> | |
<li>...</li> | |
<li>...</li> | |
</ul> | |
<!-- Nested templates are rendered here, they just have to | |
define an 'embed' block --> | |
<div id="content"> | |
{% block embed %}{% endblock %} | |
</div> | |
</body> |
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
{% extends 'master.html' %} | |
{% block embed %} | |
<h1>{{ user.username }}</h1> | |
{% endblock %} |
Author
danneu
commented
Feb 26, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment