Package Pyblosxom :: Package renderers :: Module debug
[show private | hide private]
[frames | no frames]

Module Pyblosxom.renderers.debug

This is the debug renderer. This is very useful for debugging plugins and templates.
Classes
Renderer This is the debug renderer.

Function Summary
string E(s)
Takes in a value.
  print_map(f, m)
Takes a map of keys to values and applies the function f to a pretty printed version of each key/value pair.

Function Details

E(s)

Takes in a value. If it's not a string, we repr it and turn it into a string. Then we escape it so it can be printed in HTML safely.
Parameters:
s - any value
           (type=varies)
Returns:
a safe-to-print-in-html string representation of the value
           (type=string)

print_map(f, m)

Takes a map of keys to values and applies the function f to a pretty printed version of each key/value pair.
Parameters:
f - function for printing
           (type=function)
m - a mapping of key/value pairs
           (type=map)

Generated by Epydoc 2.1 on Tue Feb 7 21:43:58 2006 http://epydoc.sf.net