Add add_view_content as a utility function.

It adds the given content to the template.