• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

tidy tool for Template Toolkit


Commit MetaInfo

修订版0ce9b6305deb7f9aa048035ba7262ebae44a8b88 (tree)
时间2015-07-08 18:07:44
作者hylom <hylom@user...>
Commiterhylom

Log Message

add test file

更改概述

差异

--- /dev/null
+++ b/t/test01.html.tt
@@ -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 %]