added local view templating.