Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.09 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.09 KB

Text Temple

v0.1.0


Quick summary

A lightweight templating engine for regular text files.

Installing

Node.js:

npm install --save "https://github.com/kAlbert19/node-text-temple/archive/master.tar.gz"

Meteor:

Create a Meteor wrapper package:

  1. Go to your project's /packages directory (make one if it doesn't exists).

  2. Do meteor create --package tendo:text-temple

  3. Add to /packages/text-temple/text-temple.js:

     Temple = Npm.require('text-temple');
    
  4. 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',
     });
    
  5. Add as dependecy: meteor add tendo:text-temple

Examples

Coming soon

Testing

  • To run: npm test.
  • To find files: /test directory.