npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hogan-brisket

v0.3.0

Published

Hogan.js adapter for Brisket

Readme

Hogan Brisket

Hogan Brisket is an adapter for Hogan.js templating in a Brisket application.

Build Status

Getting Started

This Brisket plugin requires Brisket 0.x

Please refer to Brisket.View Documentation as it describes how to configure Brisket Views for templating.

Note that this plugin does not provide templating or template compilation. It is merely an adapter that enables Brisket to render compiled Hogan.js templates. To integrate Hogan.js into your application, please refer to Hogan.js.

You may install this plugin from your console with the following command:

npm install hogan-brisket --save

Usage

Once you have Hogan.js integrated into your build, you will have an automatically generated compiled templates file that looks like this somewhere within your application:

// templates.js
var Hogan = require('hogan.js');

module.exports = {
  'templates/index.html' : new Hogan.Template({ ... }),
  'templates/_header.html' : new Hogan.Template({ ... })
};

To make these templates available in your Brisket View, you simply need to specificy Hogan Brisket as your template adapter:

// IndexView.js
var Brisket = require("brisket");
var templates = require("./templates.js");

var IndexView = Brisket.View.extend({

    templateAdapter: require("hogan-brisket")(templates),

    template: "templates/index.html"

});

module.exports = IndexView;

Partials

By defualt, Hogan Brisket makes all partials globally available to all of your templates. Referring to IndexView in the previous section, this means that within your templates/index.html template you would be able to render the header partial without any extra effort:

{{! templates/index.html}}

<header>{{> templates/_header.html}}</header>

However, you may want to disable this behavior and force Hogan Brisket to only expose partials explicity declared in your Brisket View. This is possible by setting the globalPartials option to false when constructing the adapter:

// IndexView.js (with explicit partials)
var Brisket = require("brisket");
var templates = require("./templates.js");

var IndexView = Brisket.View.extend({

    templateAdapter: require("hogan-brisket")(templates, {
        globalPartials: false
    }),

    template: "templates/index.html",

    partials: {
        "header": "templates/_header.html"
    }

});

module.exports = IndexView;

In this example, the only partial available within your template would be the header partial. It can be rendered as follows:

{{! templates/index.html}}

<header>{{> header}}</header>

It is important to note that the partial name matches the key in the partials object on IndexView.

License

The MIT License (MIT) Copyright (c) 2014 Eric Herdzik