gettext-pug

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i gettext-pug

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.53 kB

Total Files

7

Last publish

Collaborators

  • pirxpilot