Use less globals in view helper examples
Merge pull request #1542 from amiel/less-globals

Use less globals in view helper examples