Add support for view functions in static views