import os
from jinja2 import Environment, FileSystemLoader

print "----------------------------------------------------\n"
print "Filename = ",__file__
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
print "Directory name =" ,THIS_DIR
var = 100
listA = [1, 2, 3]

def print_html_doc():
    j2_env = Environment(loader=FileSystemLoader(THIS_DIR),
                         trim_blocks=True)
    print j2_env.get_template('chldJnj2.html').render(
                              title='Hellow Gist from GutHub',
                              var = var,
                              listA = listA
                                           )
if __name__ == '__main__':
    print "\n----------------------------------------------------\n"
    print_html_doc()
