src/Sonic/Routes/Feed/AtomRoute.php
public function build_route($param = '')
    {
        // Get dates from all content
        $dates = $this->dates('content');
        // Get filenames of content and create array to hold posts
        $posts = $this->posts();
        // Get today's date as a DateTime object
        $todays_date = new \DateTime();

        // Set response content-type
        $this->sonic->app['router']->response()->headers->set('Content-type', 'application/xml');

        // Render template with Twig
        return $this->sonic->app['twig']->render(
            'feed.twig',
            array(
                'date' => $todays_date->format(\DateTime::ATOM),
                'entries' => $posts
            )
        );
    }
public function build_route($param = '')
    {
        // Get dates from all content
        $dates = $this->dates('content');
        // Get filenames of content and create array to hold posts
        $posts = $this->posts();
        // Get today's date as a DateTime object
        $todays_date = new \DateTime();

        // Set response content-type
        $this->sonic->app['router']->response()->headers->set('Content-type', 'application/xml');

        // Render template with Twig
        return $this->sonic->app['twig']->render(
            'feed.twig',
            array(
                'date' => $todays_date->format(\DateTime::ATOM),
                'entries' => $posts
            )
        );
    }
Builds and returns the rendered HTML

@return string