-
Notifications
You must be signed in to change notification settings - Fork 54
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
Update twig loader to support Twig 2.x #105
base: master
Are you sure you want to change the base?
Conversation
Documenting the :plain filter
These are used by Vue.js: https://vuejs.org/v2/api/#v-on
Allow “@“ and “.” in attribute names
why is this one better? |
#102 doesn't currently perform any haml rendering in the I've tested with twig 2.0, though it looks like I may have broken backwards compatibility with twig 1.0 which is why the tests failed (they seem to only run for twig 1.x). I'll take a look and update the PR. |
b965c2c
to
051eeea
Compare
@vendethiel I've refactored the haml generation to keep support for both twig 1.x as well as making twig 2.x work, however I'm struggling to get the tests to pass across all versions. It seems you can't mock a method if it doesn't exist, therefore:
How do you want to proceed? |
@TechWilk |
@jkufner yep, totally didn't think of that! |
c643bd2
to
8d28117
Compare
getSource() was deprecated in twig 1.27 getSourceContext() replaced it, which returns a Twig_Source object, rather than just the code https://twig.symfony.com/doc/1.x/deprecated.html#loaders
getSource()
was deprecated in twig 1.27https://twig.symfony.com/doc/1.x/deprecated.html#loaders