2.0.2 • Published 5 years ago

handlebars-helper-svg v2.0.2

Weekly downloads
42
License
ISC
Repository
github
Last release
5 years ago

handlebars-helper-svg

A helper to inline svg efficiently

Use

Register this module as a handlebars helper, and then you can load SVG files from packages.

In your template:

<div class='thing'>
    {{svg "somepackage/test.svg" width="109"}}
</div>
<div class='someotherplace'>
    {{svg "somepackage/test.svg" width="22"}}
</div>

The SVG will be inlined, and attributes will be added to the root element.

This module only works for server-side rendering, though contributions to add browser support are welcome.

2.0.2

5 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.5

8 years ago