示例#1
0
def example_helpers():
    return dict(a=H1("I am a title"),
                b=2,
                c=dict(d=3, e=4, x=INPUT(_name="test")))
示例#2
0
def showme():
    return dict(a=H1("I am a title"),
                b=2,
                c=dict(d=3,
                       e=4,
                       x=INPUT(_name="test")))
示例#3
0
def count(number=1):
    message = T("Cat").format(n=number)
    link = A(T("more"), _href=URL("count/%s" % (number + 1)))
    return HTML(BODY(H1(message, " ", link))).xml()
示例#4
0
def count(number=1):
    message = T('Cat').format(n=number)
    link = A(T('more'), _href=URL('count/%s' % (number+1)))
    return HTML(BODY(H1(message, " ", link))).xml()