Skip to content
Permalink
Browse files
Add Page Meta as a template Var
  • Loading branch information
aa9863 committed Sep 4, 2020
1 parent acde0e1 commit f7a0ce63c662964d3ed750796285fc2f88dc3e25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
@@ -41,3 +41,6 @@ passwords of any length, with (almost) all ASCII characters as valid
symbols, making use of a flaw in the binaries that allows a "timing
attack".

## Due date

The couresework is due by {{page.meta.due}}
@@ -169,7 +169,7 @@ class MarkdownParser():



#TODO: Fix this Kludge
#TODO: ---------- Fix this Kludge ------------
tempHeader = {"page":{"meta":self.header}}

#First pass of the text with jinja
@@ -138,5 +138,6 @@ class HTMLRenderer(Renderer):
out = self.template.render({"content":sections,
"header": header,
"order": theParser.sectionOrder,
"calcs": calcs})
"calcs": calcs,
"page":{"meta": header}})
return out

0 comments on commit f7a0ce6

Please sign in to comment.