1.1.0 • Published 10 years ago

localizr v1.1.0

Weekly downloads
272
License
-
Repository
github
Last release
10 years ago

localizr

Lead Maintainer: Aria Stewart

Build Status

A library and tool to apply localization to dust templates before rendering.

It applies the contents of 'content bundles' to {@pre} tags in dust templates, as first described in Makara's README

Use

$ npm install -g localizr
$ localizr --props=content/index.properties --out=templates/out templates/index.dust
var fs = require('fs'),
    localizr = require('localizr');

var out, options;

out = path.join(__dirname, 'templates', 'out', 'index.dust');
options = {
  src: path.join(__dirname, 'templates', 'index.dust'),
  props: path.join(__dirname, 'content', 'index.properties')
};

localizr.createReadStream(options).pipe(fs.createWriteStream(out));
1.1.0

10 years ago

1.0.5

10 years ago

0.1.6

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

0.1.5

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

11 years ago

1.0.0

11 years ago

0.1.0

11 years ago