This project is not covered by Drupal’s security advisory policy.

Readme

This small module will help integrating a pattern library (pattern lab, myagi, you name it) with a drupal backend. Instead of declaring a custom theme-hook and including a pattern into your custom template you can just call pattern(<category>, <name>, <arguments>).

Installation

Install the module as usual

Usage

To render a pattern, just use the pattern-helper-function:

in PHP:

$render_array = pattern('atoms', 'button', ['label' => 'hello world']);

in twig:

{% set output = pattern('atoms', 'button', { label: 'hello world' } %}
{{ output }}
Supporting organizations: 
Development

Project information

Releases