| Home | Trees | Indices | Help | 
 | 
|---|
|  | 
           object --+        
                    |        
base.DirectiveFactory --+    
                        |    
            base.Template --+
                            |
                           OldTextTemplate
Legacy implementation of the old syntax text-based templates. This class is provided in a transition phase for backwards compatibility. New code should use the NewTextTemplate class and the improved syntax it provides.
>>> tmpl = OldTextTemplate('''Dear $name, ... ... We have the following items for you: ... #for item in items ... * $item ... #end ... ... All the best, ... Foobar''') >>> print(tmpl.generate(name='Joe', items=[1, 2, 3]).render(encoding=None)) Dear Joe, <BLANKLINE> We have the following items for you: * 1 * 2 * 3 <BLANKLINE> All the best, Foobar
| Nested Classes | |
| Inherited from  | 
| Instance Methods | |
| Inherited from  Inherited from  Inherited from  | 
| Class Variables | |
| directives = A list of (name, cls) tuples that define the set of directives provided by this factory. | |
| serializer = hash(x) | |
| Inherited from  | |
| Properties | |
| Inherited from  Inherited from  | 
| Class Variable Details | 
| directivesA list of (name, cls) tuples that define the set of directives provided by this factory.
 | 
| Home | Trees | Indices | Help | 
 | 
|---|
| Generated by Epydoc 3.0.1 on Sun Jan 27 18:17:20 2013 | http://epydoc.sourceforge.net |