8000 add initial nunjucks version for testing · StudyCourse/pythonlearn@ad76dbe · GitHub
[go: up one dir, main page]

Skip to content

Commit ad76dbe

Browse files
committed
add initial nunjucks version for testing
1 parent ed06d42 commit ad76dbe

File tree

22 files changed

+43435
-0
lines changed

22 files changed

+43435
-0
lines changed

book/trinket/nunjucks.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{% block content %}
2+
<div class="content">
3+
$if(title)$
4+
<div id="$idprefix$header">
5+
<h1 class="title">$title$</h1>
6+
$if(subtitle)$
7+
<h1 class="subtitle">$subtitle$</h1>
8+
$endif$
9+
$for(author)$
10+
<h2 class="author">$author$</h2>
11+
$endfor$
12+
$if(date)$
13+
<h3 class="date">$date$</h3>
14+
$endif$
15+
</div>
16+
$endif$
17+
18+
$body$
19+
</div>
20+
{% endblock %}

book/trinket/pfe/01-intro.html

Lines changed: 412 additions & 0 deletions
Large diffs are not rendered by default.

book/trinket/pfe/02-variables.html

Lines changed: 393 additions & 0 deletions
Large diffs are not rendered by default.

book/trinket/pfe/03-conditional.html

Lines changed: 319 additions & 0 deletions
Large diffs are not rendered by default.

book/trinket/pfe/04-functions.html

Lines changed: 393 additions & 0 deletions
Large diffs are not rendered by default.

book/trinket/pfe/05-iterations.html

Lines changed: 244 additions & 0 deletions
Large diffs are not rendered by default.

book/trinket/pfe/06-strings.html

Lines changed: 356 additions & 0 deletions
Large diffs are not rendered by default.

book/trinket/pfe/07-files.html

Lines changed: 13728 additions & 0 deletions
Large diffs are not rendered by default.

book/trinket/pfe/08-lists.html

Lines changed: 2634 additions & 0 deletions
Large diffs are not rendered by default.

book/trinket/pfe/09-dictionaries.html

Lines changed: 720 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
0