Full support for locals and custom render methods

Signed-off-by: Chris Keele <dev@chriskeele.com>