Added ability to specify View in AbstractPrototype.write(document).
Merge branch 'master' of https://github.com/foam-framework/foam