Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

math2001/itp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

itp – Insert template please

Gitmoji

itp is a simple manager for template. It's useful to create boilerplate for READMEs, gitignores, etc... It isn't a huge beast with bells and whistle. It just does the job.

Installation

npm install --global itp

Or if you have yarn (better IMO):

yarn global add itp

Usage

It's very simple. You create .templates folder in your HOME directory, and inside, you put it all your template. Then, all you have to do is:

~/some/where $ itp filename

~/.templates/filename will be parsed and compiled by handlebars and then ~/some/where/filename will be written.

If the destination already exists, you have to use the --force flag, otherwise you'll get a warning and it won't do anything.

Tip: you can do more than one template at a time, for example:

~/my/new/repository $ itp README.md .gitignore 

Variables

In your template, you have access to the following variables:

Name Description Example
cwd The path to the current working directory ~/tools/itp
directory The last directory in cwd itp

Feel free to raise an issue/pull request if you need some other variables 😉

About

A little template manager with a cute name.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published