/** * Hijack the default rendering for inline scripts * * @return string */ public function render() { // handle inline differently if (isset($this->attributes['inline'])) { // we'll need some content if we're inline if (empty($this->attributes['inline'])) { throw new \Exception('No inline javascript content supplied'); } return $this->renderInternal(); } return parent::render(); }