From 8f12a1a6918558d082496489700de38f698731db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCller?= Date: Sat, 9 Sep 2017 20:49:45 +0200 Subject: [PATCH] templating added --- assets/footer.html | 7 ------- assets/markdown/Demo.md | 36 ------------------------------------ assets/public/index.html | 2 +- assets/public/style.css | 7 ++++--- assets/template.html | 16 ---------------- assets/templates/note.html | 21 +++++++++++++++++++++ assets/templates/page.html | 19 +++++++++++++++++++ server.go | 29 ++++++++++++++++++----------- 8 files changed, 63 insertions(+), 74 deletions(-) delete mode 100644 assets/footer.html delete mode 100644 assets/markdown/Demo.md delete mode 100644 assets/template.html create mode 100644 assets/templates/note.html create mode 100644 assets/templates/page.html diff --git a/assets/footer.html b/assets/footer.html deleted file mode 100644 index b40ab32..0000000 --- a/assets/footer.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/assets/markdown/Demo.md b/assets/markdown/Demo.md deleted file mode 100644 index 45c591f..0000000 --- a/assets/markdown/Demo.md +++ /dev/null @@ -1,36 +0,0 @@ -# Demo Note - -## Text Formatting - -This is a _short_ note demonstrating the **capabilities** of Markdown. [Markdown](http://en.wikipedia.org/wiki/Markdown) is a _markup language_ with plain text -formatting syntax. But you also can use standard HTML tags. - -## Backquotes, Lists & Code - -This is a backquote: - -> _"Our greatest glory is not in never falling but in rising every time we fall."_ -> — Confucius - -To create simple lists, just enumerate all items using a dash in the prefix: - -- Alpha -- Beta -- Gamma - -Also you can either mark some special `words` or write entire `code` blocks: - - (defn fact [n] - (if (< n 2) 1 - (* n (fact (- n 1))))) - -## Tables - -Also simple tables is a piece of cake: - -Column 1 | Column 2 | Column 3 ---- | --- | --- -Text 1 | Text 3 | Text 5 -Text 2 | Text 4 | Text 6 - -Take a look at the [source code](/Demo.md/export) of this page, to see how it works. diff --git a/assets/public/index.html b/assets/public/index.html index 411aaf8..383de39 100644 --- a/assets/public/index.html +++ b/assets/public/index.html @@ -18,7 +18,7 @@

Changelog