Skip to content

Commit

Permalink
publish-html save json files
Browse files Browse the repository at this point in the history
  • Loading branch information
leejjoon committed Nov 4, 2014
1 parent ed9c5ae commit 02ccadb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/recipe_publish_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,10 @@ def publish_html(utdate, config_file="recipe.config"):
template = env.get_template('index.html')

sources = make_html(utdate, dirname)
from libs.json_helper import json_dump
json_dump(dict(utdate=utdate,
sources=sources),
open(os.path.join(dirname, "summary.json"), "w"))

s = template.render(utdate=utdate, sources=sources)
open(os.path.join(dirname, "index.html"), "w").write(s)

0 comments on commit 02ccadb

Please sign in to comment.