Skip to content

support include function #392

@olets

Description

@olets

The include() functions is equivalent to the include tag. It breaks twig.js with "Cannot call method 'replace' of undefined."

Example:
{{ include('template.html', {foo: 'bar'}, with_context = false) }}
{% include 'template.html' with {'foo': 'bar'} only %}

http://twig.sensiolabs.org/doc/functions/include.html

edit following #392 (comment): I don't recall why this was closed. reopening

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions