Skip to content

lukebussey/handlebars-inline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published