Implements templates and generic views