import web
class index:
def GET(self):
i = web.input(age=None)
return "You are " + i.age
if __name__ == "__main__":
app = web.application(urls, globals())
app.run()
This is my code. I'm testing something.
It isn't rendering the html. For example, If I return i.name by itself, and the age (i.age) parameter = <b>25</b>, it will show 5 as bolded and it renders it nicely. However, if I return return "You are " + age, the html will not render and it will just show as Hi <b>25</b>
return "<body> You are " + i.age + "</body>"?<tag>age</tag>?