christophercliff / metalsmith-fingerprint

A fingerprint plugin for Metalsmith
MIT License
28 stars 7 forks source link

Doesn't work with swig #12

Closed geoffatcircle closed 8 years ago

geoffatcircle commented 8 years ago

Seems to work if I remove the dot after fingerprint in the template:

The fingerprint object is accessible from the Handlebars template:

<link href="{{ fingerprint[css/index.css] }}" rel="stylesheet" type="text/css" />
christophercliff commented 8 years ago

The dot syntax is specific to Handlebars. The important thing is the fingerprint object being passed to the templater has the shape:

{
  'css/index.css': 'etc.'
}