Skip to content

TheLarkInn/twig-deps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twig-deps

NPM version Build Status Dependency Status Coverage percentage

Walk the dependency graph of a Twig template.

Installation

npm install twig-deps

Example

var TwigDeps = require('twig-deps');

var depper = new TwigDeps();
var entry = '/path/to/your/template.twig';

depper.on('data', function (dependency) {
    // do something with dependency
});

depper.on('missing', function (dependency) {
    // do something with missing dependency
});

depper.on('error', function (error) {
    // do something on error
});

d.end(entry);

Contributing

  • Fork the main repository
  • Code
  • Implement tests using node-tap
  • Issue a pull request keeping in mind that all pull requests must reference an issue in the issue queue

License

Apache-2.0 © Eric MORAND

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%