1.0.0 • Published 5 years ago

gettext-pug v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

NPM version Build Status Dependency Status Dev Dependency Status

gettext-pug

Helper for applying xgettext to jade/pug files It transforms Jade/Pug templates into simplified JAvaScript that can be parsed by xgettext.

Install

$ npm install --save gettext-pug

Usage

Programmatically:

var gettextPug = require('gettext-pug');
var javascript = gettextPug(jadeOrPugTemplate);

Command line - to prep and process a directory of .jade/.pug templates:

$ gettext-pug [from-directory] [to-directory]
$ xgettext [files-in-to-directory]

License

MIT © Damian Krzeminski