We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Twig templates

How Do I?

maneesh's avatar
maneesh
31 posts
4 months ago
maneesh's avatar maneesh

With Coilpack, the Twig templates are supported - this is understood. Is there a way in which Laravel is not required to get the support for Twig templates and GraphQL APIs for the content? The Coilpack based solution adds to the overall steps and complexity, which I am seeking to avoid.

       
Bryan's avatar
Bryan
16 posts
4 months ago
Bryan's avatar Bryan

Hi Maneesh,

Coilpack was developed to take advantage of several Laravel packages to enable support for Twig, Blade and GraphQL so unfortunately it isn’t possible to use it without Laravel. We did try to minimize the amount of Laravel knowledge and setup needed to use Coilpack but you’re right it does involve extra steps and increased complexity.

I am not aware of any packages that provide Twig templating support in ExpressionEngine but Bones does offer a path to utilizing ExpressionEngine in a headless manner.

       
maneesh's avatar
maneesh
31 posts
4 months ago
maneesh's avatar maneesh

Hi Bryan, it would be great to have EE support GraphQL API framework and Twig natively. I understand Bones and other add-ons support the API / headless usage. The intent behind my post was to see if EE could natively support these or not.

Twig improves performance, and GraphQL can bring EE into a single source for web and API driven mobile apps, and possibly even for things like push notifications, social media automation, and more.

But yes, I do understand the team’s motivation to leverage Laravel’s existing infra.

Thank you for taking the time to respond!

       
Bryan's avatar
Bryan
16 posts
4 months ago
Bryan's avatar Bryan

Hi Maneesh, my pleasure!

I completely agree with you, it would be wonderful to have GraphQL and Twig supported natively and that is something we have discussed and would like to see in the future.

In the meantime if you want to give Coilpack a try and need help with the Laravel side of things there is a dedicated channel in our Slack where community members would be happy to assist you 😊

       
Julie Branch's avatar
Julie Branch
1 posts
one month ago
Julie Branch's avatar Julie Branch

you can get Twig + GraphQL without Laravel possibly, but with some effort and missing convenience/features. To do this, you need to skip Laravel completely and use a Twig integration (or plugin) that renders templates in EE. For content output, use EE’s built-in templating system or custom EE modules to expose content.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.