Skip to content

wpsix/twig-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twig-HTML

I made this package for my html templates to support latest twig.js. Easier to convert twig templates to html with npm scripts.

Install

npm i twig-html --save-dev

Usage

Add script to your package.json like this:

"scripts": {
  "html": "twig -s src/views/*.html -d src/data/*.json -o dist/"
}

Options:

-h, --help                output usage information
-V, --version             output the version number
-s, --source <directory>  define the source directory
-d, --data <path>         define the data path [optional]
-o, --output <directory>  define the output directory

Run the script.

npm run html

More examples is available on the github repo.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published