From aba356035edb5482052231dda722bbad192d4031 Mon Sep 17 00:00:00 2001 From: Maxim Poletaev Date: Mon, 7 Mar 2016 00:05:52 +0300 Subject: [PATCH] Add changelog and examples --- CHANGES.rst | 9 +++++++++ examples/hello_world.py | 15 +++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 CHANGES.rst create mode 100644 examples/hello_world.py diff --git a/CHANGES.rst b/CHANGES.rst new file mode 100644 index 0000000..6f0e434 --- /dev/null +++ b/CHANGES.rst @@ -0,0 +1,9 @@ +========= +Changelog +========= + + +1.0.0 - 2016-03-06 +===== + +Initial release diff --git a/examples/hello_world.py b/examples/hello_world.py new file mode 100644 index 0000000..119f6d1 --- /dev/null +++ b/examples/hello_world.py @@ -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())