0.1.3 • Published 3 years ago

twig-html v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

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.

0.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.3

3 years ago

1.0.0

6 years ago