public function quote($text, \Mustache_LambdaHelper $helper) {
        // Split the text into an array of variables.
        $content = trim($text);
        $content = $helper->render($content);

        // Escape the {{ and the ".
        $content = str_replace('"', '\\"', $content);
        $content = preg_replace('([{}]{2,3})', '{{=<% %>=}}${0}<%={{ }}=%>', $content);
        return '"' . $content . '"';
    }