Add Locals

`locals` variable was introduced to scope needed variables to the
view. This will make sure that the variable you want access to are
available in the view.