diff options
author | Eric Bidelman | 2012-10-16 11:26:53 -0700 |
---|---|---|
committer | Eric Bidelman | 2012-10-16 11:26:53 -0700 |
commit | c52fcb4a65c516a3e8f21a39de899fb88eb5fb7a (patch) | |
tree | 9ee075172091452371810efcf765faf1cc81208d /scripts/md/render.py | |
parent | f208307cbdd403d3fa92a1aae1dc9c094c7ec9d8 (diff) | |
download | io-slides-remote-c52fcb4a65c516a3e8f21a39de899fb88eb5fb7a.tar.gz |
Updating md render script
Diffstat (limited to 'scripts/md/render.py')
-rwxr-xr-x | scripts/md/render.py | 5 |
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 | |||
2 | import codecs | 3 | import codecs |
3 | import re | 4 | import re |
4 | import jinja2 | 5 | import jinja2 |
5 | import markdown | 6 | import markdown |
6 | 7 | ||
7 | def process_slides(): | 8 | def 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) |