Socket
Socket
Sign inDemoInstall

connect-mustache-middleware

Package Overview
Dependencies
2
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    connect-mustache-middleware

Connect middleware to compile Mustache templates


Version published
Weekly downloads
8
increased by166.67%
Maintainers
2
Install size
198 kB
Created
Weekly downloads
 

Readme

Source

mustache-engine

Connect middleware to compile requested html file as a mustache template before serving the response. Also allow mustache partials to be included using file system.

Example

var mustacheEngine = require('connect-mustache-middleware');

connect().use(mustacheEngine.middleware({
	rootDir: '.tmp', // path to look mustache templates
	dataDir: 'mock/data' // path to look for JSON data files
}))

Installation

npm install connect-mustache-middleware

Features

  • Works as connect middleware and compile requested HTML file as mustache template.
  • Allow mustache partials to be included using file system.

Keywords

FAQs

Last updated on 17 Oct 2014

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc