🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

template-html

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

template-html

Generate static HTML files from templates and content files

0.1.0
Source
npm
Version published
Maintainers
1
Created
Source

template-html

NPM Version Dependency Status

Generate static HTML files from templates and content files. gulp-template-html is a Gulp plugin for this with example usage.

Installation

$ npm install -g template-html

Help

Usage: template-html content.html -t template.html [options]

-h|--help      display this help message
-v|--version   display the version number
-o|--output    directory to output processed HTML
-t|--template  template file to use
--tag          keyword to use be used in HTML placeholder comments

Documentation

Templator(options)

Creates a new Templator instance.

Params

  • Object options: An object containing the following fields:
  • templateFile (String): Path to template file to use.
  • tag (String): Keyword to use be used in HTML placeholder comments.

processFile(contentFile)

Run the contents of an HTML file through the Templator

Params

  • String contentFile: Path to HTML file to be processed

Return

  • String The processed HTML

processContent(content)

Generate HTML from template file and content file

Params

  • String content: HTML content to be used in template

Return

  • String The processed HTML

How to contribute

  • File an issue in the repository, using the bug tracker, describing the contribution you'd like to make. This will help us to get you started on the right foot.
  • Fork the project in your account and create a new branch: your-great-feature.
  • Commit your changes in that branch.
  • Open a pull request, and reference the initial issue in the pull request message.

License

See the LICENSE file.

FAQs

Package last updated on 26 Apr 2016

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