ftlabs/fruitmachine — pull request #64 by matthew-andrews (2014-02-19 11:00:17+00:00)
Title: Add `before tohtml` event

When I first added this event it felt a bit hacky and dirty - but it's actually turned out to be really useful as a way of hooking into the data model to add / manipulate data. (On initialize doesn't really cut it for data that changes and gets re-rendered often)

The `before render` event *only* runs on the fm module that is being rendered - and doesn't get fired recursively over all of its children.