tidy tool for Template Toolkit
修訂 | 0284572fbea3967a925f6f09197c44f45665406f (tree) |
---|---|
時間 | 2015-08-18 19:33:21 |
作者 | hylom <hylom@user...> |
Commiter | hylom |
add and update testdata
@@ -1,19 +1,19 @@ | ||
1 | 1 | [% FOREACH section = menu %] |
2 | - <a href="[% root %]/[% section %]/index.html">[% section %]</a> | |
2 | + <a href="[% root %]/[% section %]/index.html">[% section %]</a> | |
3 | 3 | [% END %] |
4 | 4 | |
5 | 5 | <b>Client</b>: [% client.name %] (id: [% client.id %]) |
6 | 6 | |
7 | 7 | [% IF shopcart.nitems %] |
8 | - Your shopping cart contains the following items: | |
9 | - <ul> | |
10 | - [% FOREACH item = shopcart.contents %] | |
11 | - <li>[% item.name %] : [% item.qty %] @ [% item.price %] | |
12 | - [% END %] | |
13 | - </ul> | |
14 | - | |
15 | - [% checkout(shopcart.total) %] | |
16 | - | |
8 | + Your shopping cart contains the following items: | |
9 | + <ul> | |
10 | + [% FOREACH item = shopcart.contents %] | |
11 | + <li>[% item.name %] : [% item.qty %] @ [% item.price %] | |
12 | + [% END %] | |
13 | + </ul> | |
14 | + | |
15 | + [% checkout(shopcart.total) %] | |
16 | + | |
17 | 17 | [% ELSE %] |
18 | - No items currently in shopping cart. | |
18 | + No items currently in shopping cart. | |
19 | 19 | [% END %] |
@@ -0,0 +1,6 @@ | ||
1 | +[% IF foo_bar %] | |
2 | + [% IF hoge %] | |
3 | + <span>Foo, Bar, Hoge</span> | |
4 | + <a href="[% PROCESS foo %]" onclick="foo_bar(this); return false">[%- IF bar %]<img src="[% hogehoge %]">[% END -%][% post_process -%]</a> | |
5 | + [% END %] | |
6 | +[% END %] |