diff options
author | ianb <devnull@localhost> | 2007-07-23 23:12:32 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-07-23 23:12:32 +0000 |
commit | 73e753d1ef09c8393f92874c458574e7af0df25b (patch) | |
tree | e08c30f2ef080927d238ffc68d4a38d15710deb6 | |
parent | 24fadf9c3d07582153ed76ea24840374498166a5 (diff) | |
download | tempita-73e753d1ef09c8393f92874c458574e7af0df25b.tar.gz |
update imports in tests
-rw-r--r-- | tests/test_template.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_template.txt b/tests/test_template.txt index 45a85e2..7b74e23 100644 --- a/tests/test_template.txt +++ b/tests/test_template.txt @@ -1,7 +1,7 @@ The templating language is fairly simple, just {{stuff}}. For example:: - >>> from paste.util.template import Template, sub + >>> from tempita import Template, sub >>> sub('Hi {{name}}', name='Ian') 'Hi Ian' >>> Template('Hi {{repr(name)}}').substitute(name='Ian') @@ -67,7 +67,7 @@ And some syntax errors:: There's also an HTMLTemplate that uses HTMLisms:: - >>> from paste.util.template import HTMLTemplate, sub_html, html + >>> from tempita import HTMLTemplate, sub_html, html >>> sub_html('hi {{name}}', name='<foo>') 'hi <foo>' @@ -89,7 +89,7 @@ Also a couple handy functions;: There's a handyish looper thing you can also use in your templates (or in Python, but it's more useful in templates generally):: - >>> from paste.util.looper import looper + >>> from tempita.looper import looper >>> seq = ['apple', 'asparagus', 'Banana', 'orange'] >>> for loop, item in looper(seq): ... if item == 'apple': |