It was suppose to work:
{%- macro error_messages(message, field, type) %}
    <div>
        <span class="error-type">{{ type }}</span>
        <span class="error-field">{{ field }}</span>
        <span class="error-message">{{ message }}</span>
    </div>
{%- endmacro %}But it's not. It gives me a syntaxe error, and it the exactly same code as in the docs.
My volt config:
$di->setShared('view', function() use ($config) {
    $view = new \Phalcon\Mvc\View();
    $view->setViewsDir(__DIR__ . '/Views/');
    $view->registerEngines(array(
        '.volt' => function($view, $di) use ($config) {
            $volt = new Phalcon\Mvc\View\Engine\Volt($view, $di);
            $volt->setOptions(array(
                'compiledPath' => $config->app->cacheDir, // __DIR__ . '/Views/cache';
                'compileAlways' => false,
                'compiledSeparator' => '_'
            ));
            return $volt;
        }
    ));
    return $view;
});