From 73e753d1ef09c8393f92874c458574e7af0df25b Mon Sep 17 00:00:00 2001 From: ianb Date: Mon, 23 Jul 2007 23:12:32 +0000 Subject: update imports in tests --- tests/test_template.txt | 6 +++--- 1 file 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='') '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': -- cgit v1.2.1