Skip to content

pirxpilot/gettext-pug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

prepare Jade/Pug sources for xgettext

Resources

Stars

Watchers

Forks

Packages

No packages published