aboutsummaryrefslogtreecommitdiff
path: root/scripts/md/render.py
diff options
context:
space:
mode:
authorEric Bidelman2012-10-16 11:26:53 -0700
committerEric Bidelman2012-10-16 11:26:53 -0700
commitc52fcb4a65c516a3e8f21a39de899fb88eb5fb7a (patch)
tree9ee075172091452371810efcf765faf1cc81208d /scripts/md/render.py
parentf208307cbdd403d3fa92a1aae1dc9c094c7ec9d8 (diff)
downloadio-slides-remote-c52fcb4a65c516a3e8f21a39de899fb88eb5fb7a.tar.gz
Updating md render script
Diffstat (limited to 'scripts/md/render.py')
-rwxr-xr-xscripts/md/render.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/md/render.py b/scripts/md/render.py
index c634ea0..fe667d8 100755
--- a/scripts/md/render.py
+++ b/scripts/md/render.py
@@ -1,11 +1,12 @@
1#!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python 1#!/usr/bin/env python
2
2import codecs 3import codecs
3import re 4import re
4import jinja2 5import jinja2
5import markdown 6import markdown
6 7
7def process_slides(): 8def process_slides():
8 with codecs.open('../presentation.html', 'w', encoding='utf8') as outfile: 9 with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile:
9 md = codecs.open('slides.md', encoding='utf8').read() 10 md = codecs.open('slides.md', encoding='utf8').read()
10 md_slides = md.split('\n---\n') 11 md_slides = md.split('\n---\n')
11 print len(md_slides) 12 print len(md_slides)