New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tpl

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tpl

a general purpose template cli

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

tpl

a general purpose template cli

Installation

npm install tpl or npm install -g tpl

Usage

Simple

To parse a file and apply a template, simply provide the file as an argument.

tpl hello-world.mkd

This will do several things.

  • Look for a .tpl directory in the current working directory, if none exists look for one in the parent directory, in the parent's parent directory and so on. If there's no .tpl directory all the way up to the root, use the default .tpl in the installation directory.
  • Use the configuration defined in ./tpl/conf.json.
  • Look for a parser for the file extension (.mkd). If none was found, use the default parser.
  • Read and parse the file.
  • Look if the file defined a template, which should be used for its rendering. If not, use the default rendering.
  • Print the rendered document.

If you want to save the output, you can use

tpl hello-world.mkd > hello-world.html

Use custom configuration

For information on how to customize the behavior of tpl, look at the wiki.

Bugs and Issues

If you encounter any bugs or issues, feel free to open an issue at github.

License

This package is licensed under the MIT license.

FAQs

Package last updated on 21 Jan 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts