New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

combynify

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

combynify

combyne precompiler for browserify

  • 4.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

combynify

combyne precompiler plugin for browserify.

features

  • Optimizes templates into dependency-free isolated objects
  • Recursively bundles all referenced filters, partials, and template inheritance

usage

installation

Install combynify from npm, probably as a devDependency:

npm install --save-dev combynify

Use it as a browserify transform with -t:

browerify -t combynify main.js > bundle.js
configure extensions

If you're planning on using an extension other than html, you should configure the extension option using Browserify's configuration.

Set like:

browserify -t [ combynify --extension .tmpl ] index.js > dist/out.js
requiring

main.js can look something like this:

var template = require('./hello.combyne')
console.log(template.render({ who: 'world' }))

hello.combyne is a text file like this:

hello, {{ who }}

This is the equivalent of doing:

var template = combyne('hello, {{ who }}')
console.log(template.render({ who: 'world' }))

so you can use all of combyne's fancy features like filters and partials:

var template = require('./hello.combyne')
template.registerFilter(...)
template.registerPartial(...)
console.log(template.render({ who: 'world' }))

Keywords

FAQs

Package last updated on 07 Jun 2017

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

  • 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