Skip to content

Instantly share code, notes, and snippets.

@andymayer
Created October 11, 2018 13:07
Show Gist options
  • Save andymayer/27b88488e0f48938724cdff0ae1eb843 to your computer and use it in GitHub Desktop.
Save andymayer/27b88488e0f48938724cdff0ae1eb843 to your computer and use it in GitHub Desktop.
codetest created by andymayer1 - https://repl.it/@andymayer1/codetest
import dominate
from dominate.tags import *
doc = dominate.document(title='Dominate your HTML')
with doc.head:
link(rel='stylesheet', href='style.css')
script(type='text/javascript', src='script.js')
with doc:
with div(id='header').add(ol()):
for i in ['home', 'about', 'contact']:
li(a(i.title(), href='/%s.html' % i))
with div():
attr(cls='body')
p('Lorem ipsum..')
print(doc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment