This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| application: hellohelipad | |
| version: 1 | |
| runtime: python | |
| api_version: 1 | |
| handlers: | |
| - url: /about/.* | |
| script: hellohelipad/handlers/about.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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!') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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!') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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!') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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!') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import helipad | |
| class AboutMeHandler(helipad.Handler): | |
| def get(self): | |
| self.static('templates/about_me.html') | |
| helipad.root('hellohelipad') | |
| main, application = helipad.app(AboutMeHandler) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import helipad | |
| helipad.root('hellohelipad') | |
| main, application = helipad.static('templates/about_me.html') | |
| if __name__ == "__main__": | |
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import helipad | |
| main, application = helipad.root('hellohelipad').static('templates/about_me.html') | |
| if __name__ == "__main__": | |
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import helipad | |
| main, application = helipad.root('hellohelipad').static('/about/', { | |
| 'me/': 'templates/about_me.html', | |
| 'company/': 'templates/about_company.html', | |
| }) | |
| if __name__ == "__main__": | |
| main() |