updated README and updated /demo
arnaucode arnaucode@gmail.com
Mon, 06 Nov 2017 20:47:45 +0100
10 files changed,
65 insertions(+),
3 deletions(-)
A
demo/README.md
@@ -0,0 +1,10 @@
+# kunigu - DEMO + +in this folder there are two demos: +- .txt demo +- .html demo + + +The .txt demo is just a file that includes another. + +The .html demo is the file index.html that has references to the .md files, and to the html_header.html and html_bottom.html. kunigu gets the references and includes the referenced files inside the indexOUT.html. The markdown content is converted to HTML.
M
demo/a.txt
→
demo/a.txt
@@ -3,10 +3,10 @@ 2
3 4 5 -{{kunigu demo/b.txt}} +{{kunigu @demo/b.txt}} 6 7 8 -{{kunigu demo/b.txt}} +{{kunigu @demo/b.txt}} 9 10
A
demo/card1.md
@@ -0,0 +1,9 @@
+## Hi, this is the card1 + +This card contains this content. +Maybe we can try to do a list: + +- Here is the first element +- Here the second +- Oh just the third +- etc
A
demo/card2.md
@@ -0,0 +1,5 @@
+## Hi, this is the card2 + +This card contains this content. + +bla bla bla
A
demo/index.html
@@ -0,0 +1,10 @@
+{{kunigu @demo/html_header.html}} +<div class="row"> + <div class="card"> + {{kunigu @demo/card1.md @--md-to-html}} + </div> + <div class="card"> + {{kunigu @demo/card2.md @--md-to-html}} + </div> +</div> +{{kunigu @demo/html_bottom.html}}
A
demo/indexOUT.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html> +<html> +<body> +<div class="row"> + <div class="card"> +<h2>Hi, this is the card1</h2> +<p>This card contains this content. +Maybe we can try to do a list:</p> +<ul> +<li>Here is the first element</li> +<li>Here the second</li> +<li>Oh just the third</li> +<li>etc</li> +</ul> + </div> + <div class="card"> +<h2>Hi, this is the card2</h2> +<p>This card contains this content.</p> +<p>bla bla bla</p> + </div> +</div> +</body> +</html>
A
kunigu