We're working on a Backbone.js application and the fact that we can start a HTTP server by typing python -m SimpleHTTPServer
is brilliant.
We'd like the ability to route any URL (e.g. localhost:8000/path/to/something
) to our index.html
so that we can test Backbone.Router
with HTML5 pushState
.
What is the most painless way to accomplish that? (For the purpose of quick prototyping)
Just use the built in python functionality in
BaseHTTPServer