mirror of
https://github.com/arnaucube/kunigu.git
synced 2026-02-07 03:26:42 +01:00
updated README and updated /demo
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
Just need to write
|
||||
```
|
||||
{{kunigu file.html}}
|
||||
{{kunigu @file.html}}
|
||||
```
|
||||
inside the file, and run:
|
||||
```
|
||||
|
||||
10
demo/README.md
Normal file
10
demo/README.md
Normal file
@@ -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.
|
||||
@@ -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
demo/card1.md
Normal file
9
demo/card1.md
Normal file
@@ -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
demo/card2.md
Normal file
5
demo/card2.md
Normal file
@@ -0,0 +1,5 @@
|
||||
## Hi, this is the card2
|
||||
|
||||
This card contains this content.
|
||||
|
||||
bla bla bla
|
||||
2
demo/html_bottom.html
Normal file
2
demo/html_bottom.html
Normal file
@@ -0,0 +1,2 @@
|
||||
</body>
|
||||
</html>
|
||||
3
demo/html_header.html
Normal file
3
demo/html_header.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
10
demo/index.html
Normal file
10
demo/index.html
Normal file
@@ -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
demo/indexOUT.html
Normal file
23
demo/indexOUT.html
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user