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

handlebars-idom

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handlebars-idom

A handlebars to incrememtal-dom compiler designed to compile handlebars templates into the appropriate JavaScript for Incremental DOM. Particularly useful when used along with `hbsidomify` to pre-compile Handlebars templates into Javascript functions for

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

handlebars-idom

A handlebars to incrememtal-dom compiler designed to compile handlebars templates into the appropriate JavaScript for Incremental DOM. Particularly useful when used along with hbsidomify to pre-compile Handlebars templates into Javascript functions for use in Single Page Applications on a variety of JavaScript MVC frameworks.

NOTE: This project is currently a WIP, while compiles basic handlebars statements and most builtin helpers you should take extra care running this in your projects as you may experience some incompatibilities. The tests ran in the spec folder can provide details of what is currently covered and what is yet to be implemented.

Installation

npm install handlebars-idom --save

Package Usage

var HbsIdom = require('handlebars-idom');
var fs = require('fs');
var hbs = fs.readFileSync('./example.hbs', 'utf8');

var idom = HbsIdom.compile(hbs);

CLI

# piped i/o
echo -n "{{hello}}" | hbsidom > hello.out

# file paths
hbsidom --input hello.hbs --output hello.out

FAQs

Package last updated on 21 Feb 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