v0.1.0
A lightweight templating engine for regular text files.
npm install --save "https://github.com/kAlbert19/node-text-temple/archive/master.tar.gz"
Create a Meteor wrapper package:
-
Go to your project's /packages directory (make one if it doesn't exists).
-
Do
meteor create --package tendo:text-temple
-
Add to /packages/text-temple/text-temple.js:
Temple = Npm.require('text-temple');
-
Add this to /packages/text-temple/package.js (note that the long hash before '.tar.gz' must be hardcoded there, look at github for newer commit versions):
Package.onUse(function(api) { api.versionsFrom('1.1.0.2'); api.export('Temple', 'server'); }); Npm.depends({ 'text-temple': 'https://github.com/kAlbert19/node-text-temple/archive/<latestHash>.tar.gz', });
-
Add as dependecy:
meteor add tendo:text-temple
Coming soon
- To run:
npm test
. - To find files: /test directory.