Created
October 11, 2018 13:07
-
-
Save andymayer/8a1f6c777d8282961f6634caa38b7d1a to your computer and use it in GitHub Desktop.
codetest created by andymayer1 - https://repl.it/@andymayer1/codetest
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
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