Support for partial view templates

This is needed for #459