lukebussey / handlebars-inline

A handlebars helper for inlining the contents of an external file.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

handlebars-inline

A simple Handlebars helper for inlining the contents of files.

Install

Install with npm:

$ npm install --save handlebars-inline

Registering the helper

const Handlebars = require('handlebars')
require('handlebars-inline').register(Handlebars)

Usage

{{{inline 'path/to/file.svg'}}}

Note: Handlebars helper output is HTML escaped by default. To skip escaping use the "triple-stash": {{{

About

A handlebars helper for inlining the contents of an external file.

License:MIT License


Languages

Language:JavaScript 100.0%