@netzstrategen/fractal-twig

2.4.0 • Public • Published

Fractal Twig Drupal adapter

This fork allows you to use the namespaces from your theme.info.yml file from the component-libraries key in your Fractal instance.

Requirements & Usage

Use with the Fractal integration module for Drupal:

composer require netzstrategen/drupal-twig_fractal

Setup

npm install --save git+ssh://git@github.com/netzstrategen/fractal-twig.git

or add manually in your package.json:

{
  "dependencies": {
    "@netzstrategen/fractal-twig": "git+ssh://git@github.com/netzstrategen/fractal-twig.git"
  }
}

in your fractal.js

const fractal = require('@frctl/fractal').create();
const twigAdapter = require('@netzstrategen/fractal-twig');
fractal.components.engine(twigAdapter);

Credits

This package is based on the work of https://github.com/WondrousLLC/twig-drupal

Readme

Keywords

none

Package Sidebar

Install

npm i @netzstrategen/fractal-twig

Weekly Downloads

2

Version

2.4.0

License

MIT

Unpacked Size

37.4 kB

Total Files

17

Last publish

Collaborators

  • davidgalvez
  • webkima
  • marcdap
  • italodr
  • netzkhali
  • geist.ahnen
  • tha_sun
  • fabianmarz