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

zox-handlebars

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zox-handlebars

Handlebars Rendering Engine Plugin for Zox

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Handlebars support for Zox.js

npm i zox zox-plugins zox-handlebars

Use handlebars templates:

<div class="article">
    <h1>{{title}}</h1>
    {{#if date}}<p class="date">{{formatDate date 'default'}}</p>{{/if}}
    <div class="body">{{{body}}}</div>
</div>

Write custom helpers and decorators:

@HandlebarsHelper('ifEquals')
export class IfEqualsHelper implements IHandlebarsHelper
{
    public handle(context, lvalue, rvalue, options): string
    {
        return lvalue == rvalue ? options.fn(context) : options.inverse(context);
    }
}

Keywords

handlebars

FAQs

Package last updated on 13 Jul 2018

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