tmplc

0.1.2 • Public • Published

This script allows you to collect all the HTML templates in some directory and put them into a single Javascript module which can be loaded later, for instance by RequireJS.

Installation

Another way to install this package is to use npm:

$ sudo npm install -g tmplc

Usage

$ tmplc [options]

Options are:

--dir|-d path
Use path for the templates directory. Default: templates.
--out|-o file
Use file as the output Javascript document. Default: templates.js.
--ext|-e ext
Use ext as the template's extension. Can be passed multiple times. Default: html, ejs, tmpl.
For example:
$ tmplc --ext html --ext json --dir myapp/templates --out myapp/tmpl.js

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    1
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i tmplc

Weekly Downloads

3

Version

0.1.2

License

MIT

Last publish

Collaborators

  • denis_g