--- /dev/null
+#
+# Makefile for reveal.js presentation
+#
+
+# See https://github.com/jgm/pandoc/wiki/Using-pandoc-to-produce-reveal.js-slides
+# Also look for variables at /usr/share/pandoc/data/templates/default.revealjs
+REVEAL_THEME=moon
+
+web:
+ test -s .gitmodules && git submodule update --init --recursive
+ pandoc -V theme=$(REVEAL_THEME) -V css=index.css -s --mathjax -i -t revealjs index.md -o index.html
+ pandoc -t beamer index.md -o index.pdf
--- /dev/null
+#!/bin/bash
+#
+# reveal.js templater module.
+#
+
+# Parameters
+SHARE="$1"
+
+# Include basic functions
+source $SHARE/templater/functions || exit 1
+
+# reveal.js implementation
+function templater_reveal.js {
+ if [ ! -e "Makefile.reveal.js" ]; then
+ templater_echo "Setting up reveal.js..."
+
+ if [ -d '.git' ]; then
+ git submodule add https://github.com/hakimel/reveal.js
+ else
+ git clone https://github.com/hakimel/reveal.js
+ fi
+
+ cp $SHARE/reveal.js/files/index.css .
+ cp $SHARE/reveal.js/files/index.md .
+
+ templater_install_makefile $SHARE/reveal.js/files/Makefile.reveal.js
+
+ else
+ templater_echo "reveal.js already set"
+ fi
+}
+
+# Dispatch
+templater_reveal.js