svv/html.py
changeset 50 c3ae4c448248
parent 8 27e37082625e
child 58 4f4150296cd3
equal deleted inserted replaced
49:8bc64ef57ee0 50:c3ae4c448248
   396         return super(XHTMLDocument, self).render_out(stream, self.xml_encoding, **render_opts)
   396         return super(XHTMLDocument, self).render_out(stream, self.xml_encoding, **render_opts)
   397 
   397 
   398 class TagFactory (object) :
   398 class TagFactory (object) :
   399     """
   399     """
   400         Build Tags with names give as attribute names
   400         Build Tags with names give as attribute names
   401     """
   401 
       
   402         >>> str(TagFactory().raw("><")
       
   403         '><'
       
   404     """
       
   405     
       
   406     # raw HTML
       
   407     raw = Text
   402 
   408 
   403     def __getattr__ (self, name) :
   409     def __getattr__ (self, name) :
   404         """
   410         """
   405             Get a Tag object with the given name, but no contents
   411             Get a Tag object with the given name, but no contents
   406 
   412