comparison genshi/template/tests/directives.py @ 605:bc5faca93699

Text templates now default to rendering as plain text; it is no longer necessary to explicitly specify the "text" method to the `render()` or `serialize()` method of the generated markup stream. See tickets #62 and #118.
author cmlenz
date Mon, 27 Aug 2007 19:04:20 +0000
parents 6d1fa718794f
children 0e278535c67c
comparison
equal deleted inserted replaced
604:6d1fa718794f 605:bc5faca93699
380 #end 380 #end
381 ${echo('Hi', name='you')} 381 ${echo('Hi', name='you')}
382 """) 382 """)
383 self.assertEqual(""" 383 self.assertEqual("""
384 Hi, you! 384 Hi, you!
385
385 """, str(tmpl.generate())) 386 """, str(tmpl.generate()))
386 387
387 def test_function_with_star_args(self): 388 def test_function_with_star_args(self):
388 """ 389 """
389 Verify that a named template function using "star arguments" works as 390 Verify that a named template function using "star arguments" works as
Copyright (C) 2012-2017 Edgewall Software