]> git.ipfire.org Git - thirdparty/tornado.git/commit
Consistently format the three "Hello, world" examples (docs and README)
authorGreg Ward <greg@gerg.ca>
Sun, 21 Jun 2015 14:04:21 +0000 (10:04 -0400)
committerGreg Ward <greg@gerg.ca>
Sun, 21 Jun 2015 14:20:01 +0000 (10:20 -0400)
commit5039d3d28b5897a8e614d8dbb277f68a8be75318
tree352c9ed5757cdf3995812325e04ff165dd66522b
parentfdfaf3dffa49479c7461050eacca07bc5ee8d207
Consistently format the three "Hello, world" examples (docs and README)

- encourage use of make_app() (makes testing easier)
- use fully-qualified module paths (painful in real-world code,
  but makes examples clearer)
- don't define a main() function that is never called: just
  use a boring old "__name__ == __main__" block, so the code
  can be copy + pasted + executed immediately
- just use a tuple when defining routes, not url(...): this is
  supposed to be a simple, minimalist example
README.rst
docs/guide/structure.rst
docs/index.rst