public function render($template, $data = null)
    {
        // Append .twig to end of path
        if(substr($template,-5)!='.twig'){
            $template.= '.twig';
        }
        $env = $this->getInstance();
        $parser = $env->loadTemplate($template);

        return $parser->render($this->all(), $data);
    }