from spyceTag import spyceTagLibrary, spyceTagPlus
class tag_foo(spyceTagPlus):
name = 'foo'
mustend = 1
def syntax(self):
self.syntaxPairOnly()
self.syntaxNonEmpty('val')
def begin(self, val):
self.getOut().write('<font size="%s"><b>' % str(val))
def end(self):
self.getOut().write('</b></font><br>')
class myTaglib(spyceTagLibrary):
tags = [
tag_foo,
]
|