Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
added first version.
Browse files Browse the repository at this point in the history
  • Loading branch information
akrennmair committed Apr 28, 2012
1 parent 777e1be commit a5e7697
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
@@ -0,0 +1,12 @@
TPAGE=tpage
RM=rm -f

PRES=$(patsubst pres/%.tt2,%.html,$(wildcard pres/*.tt2))

all: $(PRES)

%.html: pres/%.tt2
$(TPAGE) $< > $@

clean:
$(RM) $(PRES)
5 changes: 5 additions & 0 deletions pres/pres1.tt2
@@ -0,0 +1,5 @@
[% INCLUDE tmpl/header.tt2 title = "Presentation 1" author = "Andreas Krennmair" date = "April 28, 2012" %]
[% INCLUDE slides/foo.tt2 %]
[% INCLUDE slides/bar.tt2 %]
[% INCLUDE slides/baz.tt2 %]
[% INCLUDE tmpl/footer.tt2 %]
4 changes: 4 additions & 0 deletions slides/bar.tt2
@@ -0,0 +1,4 @@
<article>
<h3>Bar</h3>
<p>Lorem ipsum dolor sit amet...</p>
</article>
13 changes: 13 additions & 0 deletions slides/baz.tt2
@@ -0,0 +1,13 @@
<article>
<h3>Code</h3>
<p>Some code:</p>
<pre>
package main

import "fmt"

func main() {
fmt.Println("Hello, 世界")
}
</pre>
</article>
8 changes: 8 additions & 0 deletions slides/foo.tt2
@@ -0,0 +1,8 @@
<article>
<h3>Foo</h3>
<ul>
<li>foo</li>
<li>bar</li>
<li>baz</li>
</ul>
</article>
3 changes: 3 additions & 0 deletions tmpl/footer.tt2
@@ -0,0 +1,3 @@
</section>
</body>
</html>
16 changes: 16 additions & 0 deletions tmpl/header.tt2
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<title>[% title %] | [% author %]</title>
<meta charset="utf-8">
<script src="js/slides.js"></script>
<body style="display: none">
<section class="slides layout-regular template-default">
<article>
<h1>[% title %]</h1>
<p>
[% author %]
<br>
[% date %]
</p>
</article>

0 comments on commit a5e7697

Please sign in to comment.