#!/usr/bin/env python

import simplerestler

if __name__ == '__main__':
    
    doc = simplerestler.Document()

    doc.title("Title")
    doc.title("Subtitle", "=")
    doc.ul("One", "Two", "Three")
    doc.ol("One", "Two", "Three")

    doc.hr()

    doc.p("<b>Lorem ipsum</b> dolor sit amet, consectetur adipisicing <em>elit</em>, sed do eiusmod tempor " +
        "incididunt ut labore et dolore magna aliqua.<br/> Ut enim ad minim veniam, quis nostrud exercitation ullamco ..")

    doc.pre("Same as      here ")

    doc.flist(title="Book Z", author="<NAME>")

    doc.image(src="https://avatars2.githubusercontent.com/u/2757518", height="40pt", alt="Icon")

    
    doc.link(href="http://google.com", text="G00g1e")

    doc.directive(type="math", text="10*x + 12*y = z")


    doc.directive(type="sidebar", title="News", subtitle="Sport", text="Gooool!")

    print doc

    doc.save("/tmp/example.html")