Fix view helper documentation and example to reflect context

Template context is no longer the view so the previous example doesn't actually work anymore.