Socket
Book a DemoInstallSign in
Socket

markdown-templator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-templator

Include markdown files in an HTML template

1.2.3
latest
Source
npmnpm
Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

markdown-templator

NPM Version Build Status Dependency Status

Include markdown files in an HTML template. gulp-md-template is a Gulp plugin for this with example usage.

Installation

$ npm install -g markdown-templator

Help

Usage: markdown-templator template.html [options]

-h|--help      display this help message
-v|--version   display the version number
-o|--output    directory to output processed HTML
-p|--path      location to look for markdown partials

Documentation

Templator(options)

Creates a new Templator instance.

Params

  • Object options: An object containing the following fields:
  • path (String): The path to look for markdown partials.

processFile(templateFile)

Run the contents of an HTML file through the Templator

Params

  • String templateFile: Path to HTML file to be processed

Return

  • String The processed HTML

processContent(templateContent)

Inject markdown partials into HTML template

Params

  • String templateContent: HTML template string

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 10 Feb 2019

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.