metalsmith-drupal-attribute-twig

0.2.0 • Public • Published

Metalsmith Plugin for Drupal Attributes NPM version

Build Status Dependency Status Greenkeeper badge

Metalsmith plugin to look for Drupal Attribute JSON maps to transform into Drupal Attribute objects for Twig

Installation

npm install --save metalsmith-drupal-attribute-twig

CLI

If you are using the command-line version of Metalsmith, you can install via npm, and then add the metalsmith-drupal-attribute-twig key to your metalsmith.json file:

{
  "plugins": {
    "metalsmith-drupal-attribute-twig": {
      inheritFilePrefix: '@kalastatic/'
    }
  }
}

JavaScript

If you are using the JS Api for Metalsmith, then you can require the module and add it to your .use() directives:

var jstransformer = require('metalsmith-drupal-attribute-twig');

metalsmith.use(jstransformer({
  'inheritFilePrefix': '@kalastatic/'
}));

License

MIT

Package Sidebar

Install

npm i metalsmith-drupal-attribute-twig

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

4.88 kB

Total Files

7

Last publish

Collaborators

  • jbarba