Add extension point before outputting file

Example use case: view tracking
Merge pull request #18 from kinglozzer/patch-1

Add extension point before outputting file