Bug 95559 - Add text/x-twig for Twig templates
Summary: Add text/x-twig for Twig templates
Status: RESOLVED FIXED
Alias: None
Product: shared-mime-info
Classification: Unclassified
Component: freedesktop.org.xml (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: Shared Mime Info group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-23 18:02 UTC by Al Thomas
Modified: 2016-05-31 09:53 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Add text/x-twig (1.79 KB, patch)
2016-05-23 18:02 UTC, Al Thomas
Details | Splinter Review

Description Al Thomas 2016-05-23 18:02:57 UTC
Created attachment 124006 [details] [review]
Add text/x-twig

Twig templates are used by the reference templating engine implementation in PHP:
http://twig.sensiolabs.org/

The templates are used in many large projects, for example Drupal 8, Piwik analytics, eZ Publish, phpBB, phpDocumentor:
https://www.drupal.org/theme-guide/8/twig
https://developer.piwik.org/guides/views
https://doc.ez.no/display/TECHDOC/Templates+overview
https://www.phpbb.com/styles/create/#a-twig
https://www.phpdoc.org/docs/latest/getting-started/creating-your-own-template-using-twig.html

The templates can be edited in text editors, for example GtkSourceView, Atom and NetBeans:
https://github.com/gabrielcorpse/gedit-twig-template-language/blob/master/twig.lang
https://github.com/reesef/php-twig
https://netbeans.org/bugzilla/show_bug.cgi?id=209725

There also alternative implementations:
https://github.com/twigjs/twig.js/wiki
http://edmundask.github.io/codeigniter-twiggy/
Comment 1 Bastien Nocera 2016-05-31 09:53:28 UTC
Pushed with some commit message changes.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.