git.iko.soy
/
hakyll
readme
files
commits
refs
on
master
help
sign in
Added a test case for "if" statements in templates.
7d489f3
Ivan N. Veselov
13 years ago
tests/data/template.html
+11
compare with master
unified
split
@@ -1,5 +1,16 @@
1
<div>
1
<div>
2
I'm so rich I have $$3.
2
I'm so rich I have $$3.
3
$echo test$
3
$echo test$
4
+
$if(body)$
5
+
I have body
6
+
$else$
7
+
or no
8
+
$endif$
9
+
$if(unbound)$
10
+
should not be printed
11
+
$endif$
12
+
$if(body)$
13
+
should be printed
14
+
$endif$
4
$body$
15
$body$
5
</div>
16
</div>
tests/data/template.html.out
+7
@@ -1,5 +1,12 @@
1
<div>
1
<div>
2
I'm so rich I have $3.
2
I'm so rich I have $3.
3
test
3
test
4
+
5
+
I have body
6
+
7
+
8
+
9
+
should be printed
10
+
4
<p>This is an example.</p>
11
<p>This is an example.</p>
5
</div>
12
</div>
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list