Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

engine-cache

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

engine-cache - npm Package Compare versions

Comparing version 0.14.1 to 0.15.0

2

index.js

@@ -116,3 +116,3 @@ 'use strict';

Engines.prototype.getEngine = function(ext) {
if (!ext) return this.cache;
if (!ext) return;
if (ext[0] !== '.') {

@@ -119,0 +119,0 @@ ext = '.' + ext;

{
"name": "engine-cache",
"description": "express.js inspired template-engine manager.",
"version": "0.14.1",
"version": "0.15.0",
"homepage": "https://github.com/jonschlinkert/engine-cache",
"author": {
"name": "Jon Schlinkert",
"url": "https://github.com/jonschlinkert"
},
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
"contributors": [

@@ -38,17 +35,19 @@ {

"dependencies": {
"async-helpers": "^0.3.2",
"async-helpers": "^0.3.4",
"extend-shallow": "^2.0.1",
"helper-cache": "^0.7.1",
"helper-cache": "^0.7.2",
"lazy-cache": "^0.2.3"
},
"devDependencies": {
"consolidate": "^0.12.1",
"consolidate": "^0.13.1",
"engine-handlebars": "^0.6.1",
"engine-lodash": "^0.7.1",
"engine-lodash": "^0.8.2",
"engines": "^0.4.0",
"handlebars": "^3.0.2",
"mocha": "^2.2.4",
"should": "^6.0.1",
"handlebars": "^4.0.2",
"lodash": "^3.10.1",
"mocha": "^2.3.2",
"should": "^7.1.0",
"swig": "^1.4.2",
"time-require": "jonschlinkert/time-require"
"time-require": "jonschlinkert/time-require",
"underscore": "^1.8.3"
},

@@ -88,3 +87,8 @@ "keywords": [

"yaml"
]
],
"verb": {
"related": {
"list": ["helper-cache", "async-helpers", "templates", "engines"]
}
}
}

@@ -5,2 +5,8 @@ # engine-cache [![NPM version](https://badge.fury.io/js/engine-cache.svg)](http://badge.fury.io/js/engine-cache) [![Build Status](https://travis-ci.org/jonschlinkert/engine-cache.svg)](https://travis-ci.org/jonschlinkert/engine-cache)

## Changes
**HEADS UP!** as of v0.15.0, `.getEngine()` no longer returns the entire `cache` object when `ext` is undefined.
## Install
Install with [npm](https://www.npmjs.com/)

@@ -20,3 +26,3 @@

### [Engines](index.js#L23)
### [Engines](index.js#L24)

@@ -34,3 +40,3 @@ **Params**

### [.setEngine](index.js#L42)
### [.setEngine](index.js#L43)

@@ -53,3 +59,3 @@ Register the given view engine callback `fn` as `ext`.

### [.getEngine](index.js#L114)
### [.getEngine](index.js#L115)

@@ -73,3 +79,3 @@ Return the engine stored by `ext`. If no `ext` is passed, the entire cache is returned.

### [.load](index.js#L274)
### [.load](index.js#L275)

@@ -89,3 +95,3 @@ Load an object of engines onto the `cache`. Mostly useful for testing, but exposed as a public method.

### [.helpers](index.js#L306)
### [.helpers](index.js#L307)

@@ -112,3 +118,3 @@ Get and set helpers for the given `ext` (engine). If no `ext` is passed, the entire helper cache is returned.

### [.clear](index.js#L324)
### [.clear](index.js#L325)

@@ -131,7 +137,6 @@ Remove `ext` engine from the cache, or if no value is specified the entire cache is reset.

* [async-helpers](https://github.com/doowb/async-helpers): Use async helpers in templates with engines that typically only handle sync helpers. Handlebars and… [more](https://github.com/doowb/async-helpers)
* [helper-cache](https://github.com/jonschlinkert/helper-cache): Easily register and get helper functions to be passed to any template engine or node.js… [more](https://github.com/jonschlinkert/helper-cache)
* [handlebars-helpers](https://github.com/assemble/handlebars-helpers): 120+ Handlebars helpers in ~20 categories, for Assemble, YUI, Ghost or any Handlebars project. Includes… [more](https://github.com/assemble/handlebars-helpers)
* [template](https://github.com/jonschlinkert/template): Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… [more](https://github.com/jonschlinkert/template)
* [template-helpers](https://github.com/jonschlinkert/template-helpers): Generic JavaScript helpers that can be used with any template engine. Handlebars, Lo-Dash, Underscore, or… [more](https://github.com/jonschlinkert/template-helpers)
* [async-helpers](https://www.npmjs.com/package/async-helpers): Use async helpers in templates with engines that typically only handle sync helpers. Handlebars and… [more](https://www.npmjs.com/package/async-helpers) | [homepage](https://github.com/doowb/async-helpers)
* [engines](https://www.npmjs.com/package/engines): Template engine library with fast, synchronous rendering, based on consolidate. | [homepage](https://github.com/assemble/engines)
* [helper-cache](https://www.npmjs.com/package/helper-cache): Easily register and get helper functions to be passed to any template engine or node.js… [more](https://www.npmjs.com/package/helper-cache) | [homepage](https://github.com/jonschlinkert/helper-cache)
* [templates](https://www.npmjs.com/package/templates): System for creating and managing template collections, and rendering templates with any node.js template engine.… [more](https://www.npmjs.com/package/templates) | [homepage](https://github.com/jonschlinkert/templates)

@@ -148,3 +153,3 @@ ## Running tests

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/engine-cache/issues/new)
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/engine-cache/issues/new).

@@ -165,4 +170,4 @@ ## Author

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 09, 2015._
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 17, 2015._
<!-- deps: swig lodash mocha engine-lodash handlebars -->
<!-- deps: swig lodash mocha engine-lodash handlebars -->
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc