Skip to content

Commit

Permalink
moved jinja env to sysConf
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Sep 5, 2012
1 parent ef1d9b1 commit dee5591
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/python/moa/plugin/system/doc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ def pelican(job, args):
Run pelican :)
"""

jenv = jinja2.Environment(
loader=jinja2.PackageLoader('moa.plugin.system.doc'))
sysConf.plugins.pelican.jenv = jenv

themedir = os.path.join(os.path.dirname(__file__), 'theme')
sysConf.doc.server = socket.gethostname()
peliconf = '.moa/pelican.conf.py'
Expand All @@ -248,8 +252,6 @@ def pelican(job, args):
pelican_util.generate_template_page(job)

if args.force or (not os.path.exists(peliconf)):
jenv = jinja2.Environment(
loader=jinja2.PackageLoader('moa.plugin.system.doc'))
jtemplate = jenv.select_template(['pelican.conf.jinja2'])

txt = jtemplate.render(sysConf)
Expand Down

0 comments on commit dee5591

Please sign in to comment.