/** * Renders the contents of a file. In production mode, it will tell * the rendering engine to use the browsers cache if it's available. * * In development mode, the content will always be resent so that you * don't have to clear the cache every time you make a request. * * @access public * @param $source * @return void */ public function render(Scaffold_Source $source) { $this->response->set($source->contents, $source->last_modified, $this->_output_type); $this->notify('pre_render', array($this->response)); $this->response->render($this->production); }
/** * Renders the contents of a file. In production mode, it will tell * the rendering engine to use the browsers cache if it's available. * * In development mode, the content will always be resent so that you * don't have to clear the cache every time you make a request. * * @access public * @param $output string The contents to be output to the browser * @param $last_modified int Time to compare against the browser cache * @return void */ public function render($output, $last_modified) { $this->response->render($output, $last_modified, $this->production, $this->_output_type); }
/** * Renders the contents of a file. In production mode, it will tell * the rendering engine to use the browsers cache if it's available. * * In development mode, the content will always be resent so that you * don't have to clear the cache every time you make a request. * * @access public * @param $output string The contents to be output to the browser * @param $last_modified int Time to compare against the browser cache * @return void */ public function render(Scaffold_Source $source) { $this->response->render($source->get(), $source->last_modified, $this->production, $this->_output_type); }