jglamine / calvinwebprint

A friendlier interface to the printing system at Calvin College.
https://calvinwebprint.com
MIT License
6 stars 7 forks source link

Compile ember templates in production. #23

Open jglamine opened 9 years ago

jglamine commented 9 years ago

In production, we should use compiled ember templates rather than having them be compiled in the browser. This will make our app load faster as the templates wouldn't have to compile themselves on page load.

The compiled templates would not be included in the repo - they would just be built by the server.

We would have to make this play nicely with our jinja templates (right now the jinja template and ember templates are coupled), and the view route would have to be able to detect whether or not it is running in production. Perhaps it could just check for the presence of compiled templates, and use them if they are available.

We would have to install nodejs on the server, as the template compiler is a node package.

jglamine commented 9 years ago

This is a low priority task. It has the potential to make things very confusing, so I wouldn't ship this until we know we have a good solution.