Allow passing additional data to the template
Sub view options can be a function or an object