s1seven / schema-tools

Tools to create, validate and render certificates using Material Identity JSON schemas
https://materialidentity.org/
Apache License 2.0
1 stars 1 forks source link

fix: create-html-certificate.ts does not render correctly #211

Closed eamon0989 closed 1 year ago

eamon0989 commented 1 year ago

Description

As can be seen in the following screenshot, the Inspection section is not rendered correctly, instead, the partials-map.json's contents are inserted.

image

What you expected to happen :

It should render the inspection section correctly using the inspection.hbs partial.

How to reproduce it :

Run npm run fixtures:html with the required arguments, example below:

npm run fixtures:html -- -c fixtures/EN10168/v0.4.1/valid_cert.json -o fixtures/EN10168/v0.4.1/template_hbs.html -t fixtures/EN10168/v0.4.1/translations.json -T fixtures/EN10168/v0.4.1/template.hbs -p fixtures/EN10168/v0.4.1/partials-map.json
eamon0989 commented 1 year ago

This was caused by an incorrect filepath.