public function include_in_response(SS_HTTPResponse $response) { $this->compile(); return parent::include_in_response($response); }
public function include_in_response(\SS_HTTPResponse $response) { if ($this->Eventful()) { $this->Eventful()->fire('assets:beforeProcessResponse', $response); } $this->assets(); parent::include_in_response($response); if (Director::is_ajax()) { $this->_response = $response; } $this->attachCustomScriptsToResponse(); if ($this->Eventful()) { $this->Eventful()->fire('assets:afterProcessResponse', $response); } }