summaryrefslogtreecommitdiffstats
path: root/lps_gen.py
diff options
context:
space:
mode:
authorrsiddharth <rsd@gnu.org>2016-02-07 14:07:14 -0500
committerrsiddharth <rsd@gnu.org>2016-02-07 14:07:14 -0500
commitcf8852a1ab125e0350d7836f1c55135f6f02fad3 (patch)
treee8023a093d945c0787674c7233e519ea20975933 /lps_gen.py
parent97a922a541dedd5c59f909d423c38a5acb25664f (diff)
updated RenderHTML function.
Made it generic so that it can be used to render both the schedule and the speakers'.
Diffstat (limited to 'lps_gen.py')
-rw-r--r--lps_gen.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lps_gen.py b/lps_gen.py
index 2322960..52ef510 100644
--- a/lps_gen.py
+++ b/lps_gen.py
@@ -254,8 +254,8 @@ class LPSpeakersMarkdown(Markdown):
return lpspeakers_dict
-def RenderHTML(lps_dict, template):
- """Renders LP schedule in HTML from a python dictionary.
+def RenderHTML(lp_dict, template):
+ """Renders LP schedule/speakers in HTML from a python dictionary.
Returns the HTML as a string.
"""
@@ -271,9 +271,9 @@ def RenderHTML(lps_dict, template):
print "Template %s not found." % template_name
exit(1)
- lps_html = template.render(schedule=lps_dict)
+ lp_html = template.render(lp_dict=lp_dict)
- return BeautifulSoup(lps_html, 'html.parser').prettify()
+ return BeautifulSoup(lp_html, 'html.parser').prettify()
def main():