mozilla/CSOL-site — pull request #83 by cmcavoy (2013-04-09 02:01:08+00:00)
Title: [WIP] Orgs Spike

The Orgs are pulling from the database. This is more POC than actual prod ready code though. One odd thing, which I understand now is a Jinja2 thing, is that function calls aren't rendered in Nunjucks (they are in Django templates). Sequelize supports instance and class methods, which is a nice feature, but you have to do a small amount of controller manipulation to get at the data...Nunjucks will only render the actual function, not actually execute it.

I don't have a "add orgs to the database" script in here, nor do I have any tests (yet).