0.2.3 • Published 1 year ago

@miyagi/twig-drupal v0.2.3

Weekly downloads
5
License
MIT
Repository
github
Last release
1 year ago

@miyagi/twig-drupal

This extension adds support for specific twig and Drupal functionality to @miyagi/core.

Features

Drupal attributes

  • addClass
  • setAttribute

More about Drupal attributes

To use Drupal attributes in your mock files, add $drupal: true to the object.

twig

NOTE: If you need to add additional filters, functions or tags, please refer to the miyagi documentation.

Functions and filters

This plugin uses twig-drupal-filters, so all its functions and filters are supported.

Tags

  • trans / endtrans
  • plural

Installation

npm i --save-dev @miyagi/twig-drupal

or

yarn add -D @miyagi/twig-drupal

Usage

Add the extension to your .miyagi.js like this:

module.exports = {
  extensions: [require('@miyagi/twig-drupal')],
  ...
}
0.2.3

1 year ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago