return self.view because shorter than self.view.render()

also add dir checking for phots/view and an error
remove htmlobject.template because self.view.template does the samething