jglamine / calvinwebprint

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

Send printer list in jinja template rather than loading with ajax. #27

Open jglamine opened 9 years ago

jglamine commented 9 years ago

Put a <script> tag in the template and insert the array there. Then update the javascript for displaying it in index.html and app.js.

See https://github.com/jglamine/phage/blob/master/webphamerator/app/templates/edit-database.html for an example of embeding data in a javascript tag in a jinja template.