app/code/community/Nexcessnet/Turpentine/Model/Varnish/Configurator/Version3.php
public function generate($doClean = true) {
        // first, check if a custom template is set
        $customTemplate = $this->_getCustomTemplateFilename();
        if ($customTemplate) { 
            $tplFile = $customTemplate;
        } else { 
            $tplFile = $this->_getVclTemplateFilename(self::VCL_TEMPLATE_FILE);
        }
        $vcl = $this->_formatTemplate(file_get_contents($tplFile),
            $this->_getTemplateVars());
        return $doClean ? $this->_cleanVcl($vcl) : $vcl;
    }
public function generate($doClean = true) {
        // first, check if a custom template is set
        $customTemplate = $this->_getCustomTemplateFilename();
        if ($customTemplate) { 
            $tplFile = $customTemplate;
        } else { 
            $tplFile = $this->_getVclTemplateFilename(self::VCL_TEMPLATE_FILE);
        }
        $vcl = $this->_formatTemplate(file_get_contents($tplFile),
            $this->_getTemplateVars());
        return $doClean ? $this->_cleanVcl($vcl) : $vcl;
    }
public function generate ( $ doClean = true ) { // first, check if a custom template is set $ customTemplate = $ this -> _getCustomTemplateFilename ( ) ; if ( $ customTemplate ) { $ tplFile = $ customTemplate ; } else { $ tplFile = $ this -> _getVclTemplateFilename ( self :: VCL_TEMPLATE_FILE ) ; } $ vcl = $ this -> _formatTemplate ( file_get_contents ( $ tplFile ) , $ this -> _getTemplateVars ( ) ) ; return $ doClean ? $ this -> _cleanVcl ( $ vcl ) : $ vcl ; }
Generate the Varnish 3.0-compatible VCL

@param bool $doClean if true, VCL will be cleaned (whitespaces stripped, etc.)
@return string
Generate the Varnish 3 . 0 - compatible VCL