Methods
|
|
__init__
_p
chew
chomp
parse
render
tag_widget
|
|
__init__
|
__init__ ( self, template=None )
|
|
_p
|
_p (
self,
r,
t=1,
)
This is the really heinous code.
It's a state machine constructed entirely out of a giant if tree.
The idea for the syntax (in case this wreched implementation doesn't
exactly jump off the page at you) is that expressions consist of
(a[,b](...)). In the section before the comma has a special rule -- if it
finds a comma or a paren inside double quotes (""), they don't have any
special meaning (this is so that <a href="...,..."> works properly).
|
|
chew
|
chew ( self )
|
|
chomp
|
chomp (
self,
p,
l,
)
|
|
parse
|
parse ( self, f )
|
|
render
|
render ( self )
|
|
tag_widget
|
tag_widget (
self,
req,
attrs,
body,
)
|
|