• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
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

Revisão0284572fbea3967a925f6f09197c44f45665406f (tree)
Hora2015-08-18 19:33:21
Autorhylom <hylom@user...>
Commiterhylom

Mensagem de Log

add and update testdata

Mudança Sumário

Diff

--- a/t/testdata/test01.html.tt
+++ b/t/testdata/test01.html.tt
@@ -1,19 +1,19 @@
11 [% FOREACH section = menu %]
2- <a href="[% root %]/[% section %]/index.html">[% section %]</a>
2+ <a href="[% root %]/[% section %]/index.html">[% section %]</a>
33 [% END %]
44
55 <b>Client</b>: [% client.name %] (id: [% client.id %])
66
77 [% 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+
1717 [% ELSE %]
18- No items currently in shopping cart.
18+ No items currently in shopping cart.
1919 [% END %]
--- /dev/null
+++ b/t/testdata/test_process_if_end.html.tt
@@ -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 %]