added locals support

Added locals support.
pass in data to bind to using options.locals