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

jstransformer-twig

Package Overview
Dependencies
Maintainers
6
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jstransformer-twig - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

4

HISTORY.md
# Changelog
## v0.1.0: 2015-08-29
- Add `options.filename` support
## v0.0.1: 2015-07-22
- Initial release

@@ -9,6 +9,14 @@ 'use strict';

exports.compile = function (str, options) {
// Construct the Twig options.
options = options || {}
options.data = str
if ('filename' in options && !('path' in options)) {
options.path = options.filename
}
// Build the template.
var template = twig(options)
// Use .bind() so that the template is "this" when rendering.
return template.render.bind(template)
}

10

package.json
{
"dependencies": {
"twig": "^0.8.2"
},
"name": "jstransformer-twig",
"version": "0.0.1",
"version": "0.1.0",
"description": "Twig.js support for JSTransformers.",

@@ -26,6 +29,3 @@ "keywords": [

},
"license": "MIT",
"dependencies": {
"twig": "^0.8.2"
}
"license": "MIT"
}
# jstransformer-twig
[Twig.js](hhttps://github.com/justjohn/twig.js) support for [JSTransformers](http://github.com/jstransformers).
[Twig.js](https://github.com/justjohn/twig.js) support for [JSTransformers](http://github.com/jstransformers).

@@ -5,0 +5,0 @@ [![Build Status](https://img.shields.io/travis/jstransformers/jstransformer-twig/master.svg)](https://travis-ci.org/jstransformers/jstransformer-twig)

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