Skip to content

Instantly share code, notes, and snippets.

View jgeewax's full-sized avatar
🤯
Learning

JJ Geewax jgeewax

🤯
Learning
View GitHub Profile
application: hellohelipad
version: 1
runtime: python
api_version: 1
handlers:
- url: /about/.*
script: hellohelipad/handlers/about.py
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
class AboutMeHandler(webapp.RequestHandler):
def get(self):
self.response.out.write('About Me!')
class AboutCompanyHandler(webapp.RequestHandler):
def get(self):
self.response.out.write('About Company!')
import helipad
class AboutMeHandler(helipad.Handler):
def get(self):
self.response.out.write('About Me!')
class AboutCompanyHandler(helipad.Handler):
def get(self):
self.response.out.write('About Company!')
import helipad
class AboutMeHandler(helipad.Handler):
def get(self):
self.response.out.write('About Me!')
class AboutCompanyHandler(helipad.Handler):
def get(self):
self.response.out.write('About Company!')
import helipad
class AboutMeHandler(helipad.Handler):
def get(self):
self.response.out.write('About Me!')
class AboutCompanyHandler(helipad.Handler):
def get(self):
self.response.out.write('About Company!')
import helipad
class AboutMeHandler(helipad.Handler):
def get(self):
about_me = helipad.open_file('templates/about_me.html')
self.response.out.write(about_me.read())
# This sets the root to our project module
helipad.root('hellohelipad')
import helipad
class AboutMeHandler(helipad.Handler):
def get(self):
self.static('templates/about_me.html')
helipad.root('hellohelipad')
main, application = helipad.app(AboutMeHandler)
import helipad
helipad.root('hellohelipad')
main, application = helipad.static('templates/about_me.html')
if __name__ == "__main__":
main()
import helipad
main, application = helipad.root('hellohelipad').static('templates/about_me.html')
if __name__ == "__main__":
main()
import helipad
main, application = helipad.root('hellohelipad').static('/about/', {
'me/': 'templates/about_me.html',
'company/': 'templates/about_company.html',
})
if __name__ == "__main__":
main()