Add `before tohtml` event
Merge pull request #64 from ftlabs/before-tohtml

Add `before tohtml` event