Add helper getPartials to load and compile partials from a partialsMap.
Add tests for getPartials.
Fix all failing tests.
Deprecate e-coc v0.0.2 and remove tests/fixtures.
Fix broken inspection.hbs partial rendering.
Update example_partial script.
Update README.md to indicate that e-coc v0.0.2 has been deprecated.
Update README.md with instructions on how to use partials with generate-html and versioning.
Replace castCertificate with new function getCertificateType in generate-html and generate-pdf, add tests for getCertificateType.
Add check before mapping over externalStandards to ensure compatibility with closed source schemas such as tkr in generate-html and generate-pdf.
Error logging has been implemented in 2 functions, getPartials and getTranslations. To see the errors, run your command with the environment variable DEBUG=utils. Errors are thrown when an invalid language is passed to generateHtml or when using generateHtml with a schema that does not have a partials-map.json published yet.
Type of change
[x] New feature (non-breaking change which adds functionality)
[x] Dependencies update
[x] This change requires a documentation update
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules
Description
Add helper
getPartials
to load and compile partials from apartialsMap
. Add tests forgetPartials
. Fix all failing tests. Deprecate e-coc v0.0.2 and remove tests/fixtures. Fix brokeninspection.hbs
partial rendering. Updateexample_partial
script. UpdateREADME.md
to indicate that e-coc v0.0.2 has been deprecated. UpdateREADME.md
with instructions on how to use partials withgenerate-html
andversioning
. ReplacecastCertificate
with new functiongetCertificateType
ingenerate-html
andgenerate-pdf
, add tests forgetCertificateType
. Add check before mapping overexternalStandards
to ensure compatibility with closed source schemas such astkr
ingenerate-html
andgenerate-pdf
. Error logging has been implemented in 2 functions,getPartials
andgetTranslations
. To see the errors, run your command with the environment variableDEBUG=utils
. Errors are thrown when an invalid language is passed togenerateHtml
or when usinggenerateHtml
with a schema that does not have apartials-map.json
published yet.Type of change
Checklist: