SP/web2py/applications/examples/controllers/template_examples.py
Saturneic 064f602b1a Add.
2018-10-25 23:33:13 +08:00

31 lines
420 B
Python

def variables():
return dict(a=10, b=20)
def test_for():
return dict()
def test_if():
return dict()
def test_try():
return dict()
def test_def():
return dict()
def escape():
return dict(message='<h1>text is scaped</h1>')
def xml():
return dict(message=XML('<h1>text is not escaped</h1>'))
def beautify():
return dict(message=BEAUTIFY(dict(a=1,b=[2,3,dict(hello='world')])))