1 class Parser:
   2     """
   3         Send HTML code raw
   4     """
   5 
   6     def __init__(self, raw, request, **kw):
   7         self.html = raw
   8         self.request = request
   9 
  10     def format(self, formatter):
  11         """ Send the "parsed" text.
  12         """
  13         #this is pretty easy since converting HTML to HTML is a no-brainer
  14         self.request.write(formatter.rawHTML(self.html))

MoinMoin: parser/raw.py (last edited 2007-10-29 19:08:39 by localhost)