Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Python template example
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