Allow for passing templates on view initialization. Fixes #75