diff --git a/README.md b/README.md index f5717d0..1f25d4a 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Just need to write ``` -{{kunigu file.html}} +{{kunigu @file.html}} ``` inside the file, and run: ``` diff --git a/demo/README.md b/demo/README.md new file mode 100644 index 0000000..15df1e3 --- /dev/null +++ b/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. diff --git a/demo/a.txt b/demo/a.txt index e5d636f..aa39a72 100644 --- a/demo/a.txt +++ b/demo/a.txt @@ -3,10 +3,10 @@ 3 4 5 -{{kunigu demo/b.txt}} +{{kunigu @demo/b.txt}} 6 7 8 -{{kunigu demo/b.txt}} +{{kunigu @demo/b.txt}} 9 10 \ No newline at end of file diff --git a/demo/card1.md b/demo/card1.md new file mode 100644 index 0000000..64f8e86 --- /dev/null +++ b/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 diff --git a/demo/card2.md b/demo/card2.md new file mode 100644 index 0000000..9d05f07 --- /dev/null +++ b/demo/card2.md @@ -0,0 +1,5 @@ +## Hi, this is the card2 + +This card contains this content. + +bla bla bla diff --git a/demo/html_bottom.html b/demo/html_bottom.html new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/demo/html_bottom.html @@ -0,0 +1,2 @@ + + diff --git a/demo/html_header.html b/demo/html_header.html new file mode 100644 index 0000000..595fdab --- /dev/null +++ b/demo/html_header.html @@ -0,0 +1,3 @@ + + + diff --git a/demo/index.html b/demo/index.html new file mode 100644 index 0000000..5d7e744 --- /dev/null +++ b/demo/index.html @@ -0,0 +1,10 @@ +{{kunigu @demo/html_header.html}} +
+
+ {{kunigu @demo/card1.md @--md-to-html}} +
+
+ {{kunigu @demo/card2.md @--md-to-html}} +
+
+{{kunigu @demo/html_bottom.html}} diff --git a/demo/indexOUT.html b/demo/indexOUT.html new file mode 100644 index 0000000..93095be --- /dev/null +++ b/demo/indexOUT.html @@ -0,0 +1,23 @@ + + + +
+
+

Hi, this is the card1

+

This card contains this content. +Maybe we can try to do a list:

+ +
+
+

Hi, this is the card2

+

This card contains this content.

+

bla bla bla

+
+
+ + diff --git a/kunigu b/kunigu new file mode 100755 index 0000000..6939cd0 Binary files /dev/null and b/kunigu differ