1.0.5 • Published 8 years ago
pug2hbs v1.0.5
pug2hbs
Convert Pug and Jade templates to their corresponding handlebars version.
Install
npm install -g pug2hbsUsage
Usage: pug2hbs [path...]
Options:
-h, --help output usage information
-V, --version output the version number
-o, --out <destination> destination folder (defaults to current directory)*.jade files specified at path argument will be transformed to *.hbs files.
Examples
Transform all *.jade files in current directory to *.hbs files at the same directory.
$ pug2hbsTransform all *.jade files in current directory to *.hbs files at directory ./hbs-templates.
$ pug2hbs -o ./hbs-templatesTransform ./jade-templates/index.jade file to *.hbs file at directory ./hbs-templates.
$ pug2hbs -o ./hbs-templates ./jade-templates/index.jadeTransform all *.jade files of ./jade-templates directory to *.hbs files at the same directory.
$ pug2hbs ./jade-templatesTransform multiple *.jade files to *.hbs files at directory ./hbs-templates.
$ pug2hbs -o ./hbs-templates ./jade-templates ./other/about.jade ./another/some-file.jadeFor features that can't be translated from jade to handlebars a comment will be inserted, for example <!-- TODO: Fix unsupported jade mixin -->.