blob: 0fcbf1d3729704f9b7f6e300caa27fdf1e957ae9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/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
|