Name: twig-drupal-filters
Owner: Kalamuna
Description: Twig.js implementations of Drupal's Twig filters
Created: 2016-11-22 18:57:53.0
Updated: 2017-06-21 15:20:49.0
Pushed: 2018-02-19 08:55:04.0
Homepage: null
Size: 25
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.