? ?
avatar adi8i
adi8i
20 Nov 2015

Hello.

Any chances to have a better integration of TWIG ?

e.g. To render Joomla articles from twig files. In Wordpress is possible if you use Timber, they have a bit different approach. Or if there's any other alternative ?

Twig is pretty cool and some of developers prefers to use it, although i am not that sure how to use it with Joomla.

https://github.com/jarednova/timber/wiki/Timber-docs#get_posts

avatar adi8i adi8i - open - 20 Nov 2015
avatar Bakual
Bakual - comment - 20 Nov 2015

I doubt you can integrate it into Joomla 3. But as far as I remember it's a topic for Joomla 4.

avatar mbabker
mbabker - comment - 20 Nov 2015

You could do it at the component level today (FOF3 supports Laravel's Blade that way). But if you really wanted to use a "real" templating engine in Joomla, there'd have to be a lot of discussion and a lot of refactoring of the existing rendering mechanisms to do it.

avatar adi8i
adi8i - comment - 20 Nov 2015

@mbabker is not possible to use Joomla API ?

avatar mbabker
mbabker - comment - 20 Nov 2015

No. JDocument and Twig (or any third party renderer) are incompatible.

avatar zero-24 zero-24 - change - 25 Nov 2015
Category Feature Request
avatar zero-24 zero-24 - change - 25 Nov 2015
Labels Added: ? ?
avatar marcodings
marcodings - comment - 25 Nov 2015

The tentative planning for Joomla does not include support for twig.

From a resources standpoint the core will focus on Bootstrap 2 + 3 or 4.

So there can be 1..n "Joomla renderers" that take the "Universal Content Tree" and convert it to output, typically HTML

The planned J4 should have de possibility to add any custom renderer twig etc. So that custom renderer would wrap the twig renderer that by itself may use Bootstrap or ?? to output the HTML. This would however imply that views need to be supplied for your redering engine for all core stuff and any extensions you are using.

If someone steps up and want to do that and hand that to core we can discuss that

( hope this update takes aways some of the confusion )

avatar brianteeman brianteeman - change - 13 Apr 2016
Milestone Added:
avatar brianteeman
brianteeman - comment - 7 May 2016

Closed


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8507.

avatar brianteeman brianteeman - change - 7 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-07 15:04:41
Closed_By brianteeman
avatar brianteeman brianteeman - close - 7 May 2016
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2016
Status Closed New
Closed_Date 2016-05-07 15:04:41
Closed_By brianteeman
avatar joomla-cms-bot joomla-cms-bot - reopen - 7 May 2016
avatar brianteeman brianteeman - change - 7 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-07 15:07:30
Closed_By brianteeman
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2016
Status Closed New
Closed_Date 2016-05-07 15:07:30
Closed_By brianteeman
avatar joomla-cms-bot joomla-cms-bot - reopen - 7 May 2016
avatar mbabker mbabker - change - 7 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-07 15:20:53
Closed_By mbabker
avatar mbabker mbabker - close - 7 May 2016
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2016
Status Closed New
Closed_Date 2016-05-07 15:20:53
Closed_By mbabker
avatar joomla-cms-bot joomla-cms-bot - reopen - 7 May 2016
avatar joomla-cms-bot joomla-cms-bot - change - 7 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-07 15:22:39
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 7 May 2016

Add a Comment

Login with GitHub to post a comment