My GAE project has a setup like:
/static/.* --> images, css, js
/rest/.* --> a script handling all rest resources using webapp2 handlers
I want to use jinja2 templates to basically create some html pages but e.g. using the template inheritance jinja2 provides. More or less to do server side includes.
So all other incoming requests should directly render a template, e.g:
/ --> index template
/index.html --> index template
/some/path/to/a/page.html --> /some/path/to/a/page template
/some/path/to/a/page --> /some/path/to/a/page template
I would like to match both .html and paths without extension.
I don't want to create routes for all my paths, just some smart script that can handle this. Would this be possible?