public function compile()
    {
        if ($this->stopwatch) {
            $this->stopwatch->start('bolt.render', 'template');
        }
        $output = $this->template->render($this->context);
        $this->setContent($output);
        $this->compiled = true;
        if ($this->stopwatch) {
            $this->stopwatch->stop('bolt.render');
        }
    }