Name: twig-drupal-filters
Owner: GoalGorilla
Description: Twig.js implementations of Drupal's Twig filters
Forked from: kalamuna/twig-drupal-filters
Created: 2018-02-01 13:50:46.0
Updated: 2018-02-01 13:50:48.0
Pushed: 2018-02-01 14:55:12.0
Homepage: null
Size: 22
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Twig.js implementations of Drupal's Twig functions and filters. Most of these are just stubbed creations from John Albin's work in KSS-Node.
Twig = require('twig')
twigDrupal = require('twig-drupal')
dd the filters to Drupal.
Drupal(Twig);
twig
Hello World!'|clean_id }}
A comprehensive list of the filters is available here.
*These are dummy functions that don't do anything except keep Twig.js compilation from breaking when these Drupal-specific functions are used in Drupal Twig templates.