tidy tool for Template Toolkit
修订版 | 0ce9b6305deb7f9aa048035ba7262ebae44a8b88 (tree) |
---|---|
时间 | 2015-07-08 18:07:44 |
作者 | hylom <hylom@user...> |
Commiter | hylom |
add test file
@@ -0,0 +1,19 @@ | ||
1 | +[% FOREACH section = menu %] | |
2 | + <a href="[% root %]/[% section %]/index.html">[% section %]</a> | |
3 | +[% END %] | |
4 | + | |
5 | +<b>Client</b>: [% client.name %] (id: [% client.id %]) | |
6 | + | |
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 | + | |
17 | +[% ELSE %] | |
18 | + No items currently in shopping cart. | |
19 | +[% END %] |