Created
January 9, 2012 21:44
-
-
Save jamescasbon/1585116 to your computer and use it in GitHub Desktop.
Python template example
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
d = Doc() | |
with d.html: | |
with d.head: | |
d.title ('example page') | |
d.link (rel='stylesheet', href='/style.css', type='text/css') | |
with d.body (style='foo'): | |
d.a ('other stuff on another page', href='/other.html') | |
d.p ('stuff on this page') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment