#!/usr/bin/python

import jinja2

templateLoader = jinja2.FileSystemLoader( searchpath="template" )
templateEnv = jinja2.Environment( loader=templateLoader )

templateVars = {
    "license_info": "This site is released under the GNU General Public License",
    "title": "Toulibre rulez"
    }

templateIndex = templateEnv.get_template( "index.html" )
with open('index.html', 'w') as f:
    f.write( templateIndex.render( templateVars ) )

templateNews = templateEnv.get_template( "news.html" )
with open('news.html', 'w') as f:
    f.write( templateNews.render( templateVars ) )





0c4634e205011eaad1a07cd8085fa8538c475fa6
<mask token>

<mask token>
with open('index.html', 'w') as f:
    f.write(templateIndex.render(templateVars))
<mask token>
with open('news.html', 'w') as f:
    f.write(templateNews.render(templateVars))

<mask token>
templateLoader = jinja2.FileSystemLoader(searchpath='template')
templateEnv = jinja2.Environment(loader=templateLoader)
templateVars = {'license_info':
    'This site is released under the GNU General Public License', 'title':
    'Toulibre rulez'}
templateIndex = templateEnv.get_template('index.html')
with open('index.html', 'w') as f:
    f.write(templateIndex.render(templateVars))
templateNews = templateEnv.get_template('news.html')
with open('news.html', 'w') as f:
    f.write(templateNews.render(templateVars))

import jinja2
templateLoader = jinja2.FileSystemLoader(searchpath='template')
templateEnv = jinja2.Environment(loader=templateLoader)
templateVars = {'license_info':
    'This site is released under the GNU General Public License', 'title':
    'Toulibre rulez'}
templateIndex = templateEnv.get_template('index.html')
with open('index.html', 'w') as f:
    f.write(templateIndex.render(templateVars))
templateNews = templateEnv.get_template('news.html')
with open('news.html', 'w') as f:
    f.write(templateNews.render(templateVars))

#!/usr/bin/python

import jinja2

templateLoader = jinja2.FileSystemLoader( searchpath="template" )
templateEnv = jinja2.Environment( loader=templateLoader )

templateVars = {
    "license_info": "This site is released under the GNU General Public License",
    "title": "Toulibre rulez"
    }

templateIndex = templateEnv.get_template( "index.html" )
with open('index.html', 'w') as f:
    f.write( templateIndex.render( templateVars ) )

templateNews = templateEnv.get_template( "news.html" )
with open('news.html', 'w') as f:
    f.write( templateNews.render( templateVars ) )




