GET / returns Hello World
GET /hello returns Hello World
GET /hello?name=<name> returns Hello <name>
Hello does not know about HTTP related data
hello.tpl is a template for /hello
GET /greeting/:name returns Hello, :name
converted to python3 compatible
revert to python2 compatible
@get represents GET URL for execute the function
@get is global decorator
@git uses regexp for URL matching
@get can user parameterized URL
Template#generate generates string from .tpl file
Template#render generates HTML from .tpl
.tpl can use % for define python native command. % end must be used after defining the command.
Merge branch 'master' of https://github.com/takatama/python-simple-http-server