Added support for `locals`.

Added support for global defined `locals` with render override.

P.S.
Sorry, i just noticed that my formatter added speces everywhere.