Skip to content

A lightweight Node.js templating engine for regular text files.

Notifications You must be signed in to change notification settings

albkn/node-text-temple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A lightweight Node.js templating engine for regular text files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published