Update Twig extension documentation to use 1.12 changes #2421

Closed
weaverryan opened this Issue Mar 30, 2013 · 4 comments

Comments

Projects
None yet
3 participants
@weaverryan
Member

weaverryan commented Mar 30, 2013

This will apply to 2.1+. As of Twig 1.12, creating a Twig extension is slightly different. For example, Twig_Function_Function is replaced by Twig_SimpleFunction.

Both the old and new version of the Twig docs are maintained, which is nice for comparison:

Old: http://twig.sensiolabs.org/doc/advanced_legacy.html#creating-an-extension
New: http://twig.sensiolabs.org/doc/advanced.html#creating-an-extension

@ricardclau

This comment has been minimized.

Show comment
Hide comment
@ricardclau

ricardclau Apr 2, 2013

Contributor

http://symfony.com/doc/master/cookbook/templating/twig_extension.html should be updated with the new way to go, right?

Contributor

ricardclau commented Apr 2, 2013

http://symfony.com/doc/master/cookbook/templating/twig_extension.html should be updated with the new way to go, right?

@wouterj

This comment has been minimized.

Show comment
Hide comment
@wouterj

wouterj Apr 2, 2013

Member

Yes, Ryan is talking about that document.

Member

wouterj commented Apr 2, 2013

Yes, Ryan is talking about that document.

@ricardclau

This comment has been minimized.

Show comment
Hide comment
@ricardclau

ricardclau Apr 2, 2013

Contributor

Ok, I can take this one if you are ok with it.

Contributor

ricardclau commented Apr 2, 2013

Ok, I can take this one if you are ok with it.

@wouterj

This comment has been minimized.

Show comment
Hide comment
@wouterj

wouterj Apr 2, 2013

Member

of course! Do what you can! :)

Member

wouterj commented Apr 2, 2013

of course! Do what you can! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment