from fabric.api import local
from jinja2 import Environment, FileSystemLoader


template_env = Environment(loader=FileSystemLoader('.'))


def build():
    template = template_env.get_template('source/index.html')
    rendered_template = template.render()
    with open('presentation/index.html', 'wb') as fh:
        fh.write(rendered_template)

def publish():
    build()
    local('ghp-import -p presentation')

@@ -135,21 +135,321 @@
 ))%0A%0A
-%0Adef build():
+# copy reveal.js assets from submodule to presentation%0Adef prepare():%0A    local('cp -r reveal.js/css/* presentation/css/')%0A    local('cp -r reveal.js/js/* presentation/js/')%0A    local('cp -r reveal.js/lib/* presentation/lib/')%0A    local('cp -r reveal.js/plugin/* presentation/plugin/')%0A%0Adef build():%0A    prepare()
 %0A   

Add prepare() to copy reveal.js assets