Skip to content
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

Use templating services #1423

Closed
wants to merge 53 commits into from
Closed

Use templating services #1423

wants to merge 53 commits into from

Conversation

WouterSioen
Copy link
Member

Follow up on #1351 (since @Thijzer doesn't have a lot of time anymore)

Changes:

  • Use a templating service instead of new TwigTemplate()
  • Make all tests pass
  • Clean up some code.
  • Avoid nasty things like ob_start and ob_get_clean

All feedback is welcome on this!

@WouterSioen WouterSioen added this to the 4 milestone Mar 3, 2016
@WouterSioen
Copy link
Member Author

@tijsverkoyen @Thijzer do you have some time to look into this? IMO, it can be merged in the 3.10 branch. (Some parts could still be a little cleaner, but everything works and we can further refactor later too).

I'd like to see this merged soon, because it changes a lot of stuff, and further PR's to the 3.10 branch should depend on this (to avoid merge conflicts)

@Thijzer
Copy link
Contributor

Thijzer commented Mar 7, 2016

Hi @WouterSioen, thanks for picking it up where I left off.
Yes if been a bit busy with my new job.. :/

I can take a look tomorrow evening, if that's ok..

@WouterSioen
Copy link
Member Author

@Thijzer that would be very nice :)

@Thijzer
Copy link
Contributor

Thijzer commented Mar 8, 2016

twig file render errors

here are the routes
/private/en/pages/edit?token=bv0hynt11w&id=412
/private/en/locale/index
/private/en/users/index datagrid raw
/private/en/groups/index datagrid raw
/private/en/extensions/modules datagrid raw

I only checked the backend minimal install modules...

php errors
/private/en/search/settings illegal offset type

Frontend
Remove the method and accurances of method getTemplateType. This was a BC trick.
Also make sure the template parameter in your yml file is removed when tesitng.

voila,
Hope this helps.

@WouterSioen
Copy link
Member Author

Thanks for checking it, I'll look into it!

This will help us debug some issues in the tests on travis ci.
This should also fix some tests in the installer.
If we give the inserted engine the right properties and attach the
loader to it using the chain loader, we can use the same environment to
render every template.
No need to parse the positions and the forms into the navigation.
We don't want any other places to call this rather dirty method.
Note that the datagrid templates are kept, because they are still parsed
using spoontemplate.
@WouterSioen
Copy link
Member Author

@vytenizs if you want to help, it would be awesome if you could test this branch (and do some PR's if needed). I want to get this one merged asap, to be able to implement the new design on twig instead of SpoonTemplate.

@vytsci
Copy link
Contributor

vytsci commented Mar 13, 2016

Ok ill merge this on my new project and test it ASAP.

@WouterSioen
Copy link
Member Author

great! You might still get a lot of errors though ;)

@WouterSioen
Copy link
Member Author

included in #1447

@WouterSioen WouterSioen closed this Apr 1, 2016
@WouterSioen WouterSioen deleted the use-templating-services branch April 14, 2016 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants