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

docpad-plugin-handlebars

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-handlebars

Adds support for the Handlebars templating engine to DocPad.

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Handlebars Plugin for DocPad

Adds support for the Handlebars templating engine to DocPad

Convention: .anything.handlebars|hbs|hb

Install

npm install --save docpad-plugin-handlebars

Usage

The plugin also supports helpers and partials. They can be defined in the docpad settings.

Here is a small example:

{
  plugins:
    handlebars:
      helpers:
        # Expose docpads 'getBlock' function to handlebars
        getBlock: (type, additional...) ->
          additional.pop() # remove the hash object
          @getBlock(type).add(additional).toHTML()
      partials:
        title: '<h1>{{document.title}}</h1>'
        goUp: '<a href="#">Scroll up</a>'
}

History

You can discover the history inside the History.md file

License

Licensed under the incredibly permissive MIT License
Copyright © 2012 Mike Moulton

Keywords

FAQs

Package last updated on 17 Nov 2012

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