Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 884 Bytes

File metadata and controls

46 lines (33 loc) · 884 Bytes
layout default
title Usage

Usage

  1. Hello World

Hello World

"""
hello world

"""

import web

resources = (
  r'/(.*)', 'Hello'
)
webapp = web.application(resources, globals())

class Hello:
  """
  say Hello
  
  """
  
  def GET(self, name):
    if not name: 
        name = 'World'
    return 'Hello ' + name + '!'

if __name__ == '__main__':
  webapp.run()

[ download ]

<script src=http://angelo.gladding.name/assets/jquery.js></script> <script src=http://angelo.gladding.name/assets/webpy/js-prettify/prettify.js></script> <script src=http://angelo.gladding.name/assets/webpy/enliven.js></script> <style> @import url(http://angelo.gladding.name/assets/webpy/js-prettify/prettify.css); @import url(http://angelo.gladding.name/assets/webpy/changes.css); </style>