commit version 0.1

This commit is contained in:
2017-08-08 22:24:40 +02:00
parent e3d663d6c3
commit 5378676596
17 changed files with 995 additions and 1 deletions

15
example/Makefile Normal file
View File

@@ -0,0 +1,15 @@
all: entchen.html
NHTMLC:=../build/nhtmlc
%.html: %.nhtml
$(NHTMLC) $< -o $@
index.html: head.nhtml entchen.nhtml
$(NHTMLC) entchen.nhtml -o $@
clean:
rm -f entchen.html
.PHONY: all clean

9
example/entchen.css Normal file
View File

@@ -0,0 +1,9 @@
.strophe {
border-width:1px;
border-type:solid;
border-color:black;
background-color:gray;
font-type:italic;
color: white;
padding: 0.5em;
}

35
example/entchen.nhtml Normal file
View File

@@ -0,0 +1,35 @@
/*
* Generates the body of our document
*
* File created by Julian Daube
* date: 08.08.2017
*/
@head.nhtml
body {
style {
@entchen.css
}
h3{ "Alle meine Entchen" }
p[.strophe] {
"Alle meine Entchen schwimmen auf dem See,
schwimmen auf dem See,
Köpfchen in das Wasser, Schwänzchen in die Höh'."
}
p[.strophe] {
"Alle meine Täubchen gurren auf dem Dach,
gurren auf dem Dach,
eins fliegt in die Lüfte, fliegen alle nach."
}
p[.strophe] {
"Alle meine Hühner scharren in dem Stroh,
scharren in dem Stroh,
finden sie ein Körnchen, sind sie alle froh."
}
p[.strophe] {
"Alle meine Gänschen watscheln durch den Grund,
watscheln durch den Grund,
suchen in dem Tümpel, werden kugelrund."
}
}

11
example/head.nhtml Normal file
View File

@@ -0,0 +1,11 @@
/*
* Generates the document header
*
* file generated by Julian Daube
* date: 08.08.2017
*/
!DOCTYPE[html]
head {
title { "Alle meine Entchen" }
meta[charset=utf-8]
}