Browse Source

updated README and updated /demo

master
arnaucode 6 years ago
parent
commit
c03f70ad6c
10 changed files with 65 additions and 3 deletions
  1. +1
    -1
      README.md
  2. +10
    -0
      demo/README.md
  3. +2
    -2
      demo/a.txt
  4. +9
    -0
      demo/card1.md
  5. +5
    -0
      demo/card2.md
  6. +2
    -0
      demo/html_bottom.html
  7. +3
    -0
      demo/html_header.html
  8. +10
    -0
      demo/index.html
  9. +23
    -0
      demo/indexOUT.html
  10. BIN
      kunigu

+ 1
- 1
README.md

@ -2,7 +2,7 @@
Just need to write
```
{{kunigu file.html}}
{{kunigu @file.html}}
```
inside the file, and run:
```

+ 10
- 0
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.

+ 2
- 2
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

+ 9
- 0
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

+ 5
- 0
demo/card2.md

@ -0,0 +1,5 @@
## Hi, this is the card2
This card contains this content.
bla bla bla

+ 2
- 0
demo/html_bottom.html

@ -0,0 +1,2 @@
</body>
</html>

+ 3
- 0
demo/html_header.html

@ -0,0 +1,3 @@
<!DOCTYPE html>
<html>
<body>

+ 10
- 0
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}}

+ 23
- 0
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>

BIN
kunigu


Loading…
Cancel
Save