Update server side templates to use Jinja

Dokku: https://jinja.dokku.hypothes.is

Jinja[1] is a far more front-end friendly tempting system that is similar to the language that Django[2] uses, (it also has analogs in PHP[3] and Node[4]) so it's familiar to a lot of people.

This pull request...

* Swaps out chameleon for Jinja across the board.
* Moves angular templates, layouts and helpers into their own directories.
* Renames embed.txt to embed.js to avoid confusion around the content type.
* Includes a custom Jinja extension for including raw content (used for including Angular templates).

[1] http://jinja.pocoo.org/docs/dev/
[2] https://docs.djangoproject.com/en/dev/topics/templates/
[3] http://twig.sensiolabs.org
[4] https://mozilla.github.io/nunjucks/
On Wed, Nov 5, 2014 at 8:27 AM, Aron Carroll <notifications@github.com>
wrote:

> In h/subscribers.py:
>
> > @@ -15,7 +15,7 @@ def add_renderer_globals(event):
> >      event['service_url'] = request.route_url('api', subpath='')
> >
> >      # Set the blocks property to refer to the block helpers template
> > -    event['blocks'] = get_renderer('h:templates/blocks.pt').implementation()
> > +    # event['blocks'] = get_renderer('h:templates/blocks.pt').implementation()
>
> @tilgovi <https://github.com/tilgovi> cool, I'll remove the commented out
> code. Should I issue a PR against web platform too?
>
> That would be extra awesome of you. webplatform/notes-server. Bump the
requirements.txt to our latest master *after* the merge (or the ref might
go away).