Skip to content

[2.1] HTTP Cache ESI twig render tag example causes syntax error #2303

Closed
@paran01d

Description

@paran01d

the twig example code for the render include for ESI causes a syntax error in 2.1

http://symfony.com/doc/2.1/book/http_cache.html#edge-side-includes

this block:
{% render url('latest_news', { 'max': 5 }), {'standalone': true} %}

should read:
{% render url('latest_news', { 'max': 5 }) with {}, {'standalone': true} %}

here is a link to a stackover flow question and answer for background

http://stackoverflow.com/questions/15377415/twig-syntax-error-when-enabling-esi-in-symfony-2-1-8

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions