New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

jq-render

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jq-render

Simple Handlebars render plugin for jQuery

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
5
-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

jQuery Render

Simple Handlebars render plugin for jQuery

Usage

First, initialize the template.

  $('#my-placeholder').render('Here is a {{Handlebar}} template');

Or with the content inside an element

<div id="my-placeholder">Hello {{name}}!</div>

And apply the plugin without parameters.

  $('#my-placeholder').render();

Then simply render the template with some data.

  $('#my-template').render({ name: 'World!' });

Also you can initialize the template and render at the same time.

  $('#my-template').render({ name: 'World' }, 'This is another hello {{name}}!');

Once initialized the template, the render can be run again with new data.

  $('#my-template').render({ name: 'Another World' });

FAQs

Package last updated on 09 Oct 2015

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