Skip to content

Commit

Permalink
Add changelog and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpoletaev committed Mar 6, 2016
1 parent ead7e62 commit aba3560
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
=========
Changelog
=========


1.0.0 - 2016-03-06
=====

Initial release
15 changes: 15 additions & 0 deletions examples/hello_world.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from tag import HTMLDocument

doc = HTMLDocument()

with doc.head():
doc.title('Document')

with doc.body():
doc.h1('Helo world!', class_="heading")
users = ['Marry', 'John', 'Bob']
with doc.ul(id='user-list'):
for name in users:
doc.li(name)

print(doc.render())

0 comments on commit aba3560

Please sign in to comment.