Skip to content

clarification difference between function and tag includes #2813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

cordoval
Copy link
Contributor

No description provided.

@stof
Copy link
Member

stof commented Jul 10, 2013

The tag also passes the current context by default (the equivalent of {{ include('foo.twig', merge_context=false) }} is {% include 'foo.twig' only %}

weaverryan added a commit that referenced this pull request Jul 20, 2013
…emplates and making references to older include tag easier to get more information about
@weaverryan
Copy link
Member

Hi Luis!

I've patched this into the 2.2 branch at sha: 08f682e and then made some tweaks at sha: d1ca623. Basically, I don't want to talk about the {% include %} tag, as the include function is now the preferred function and there's really no reason to tell people about both of them. But, I did clarify a bit about how variables are passed between templates and added some links back to the Twig docs in 3 places.

Thanks!

@weaverryan weaverryan closed this Jul 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants