metanorma / isodoc

Generate HTML/Word from Metanorma XML
https://www.metanorma.org
BSD 2-Clause "Simplified" License
3 stars 3 forks source link

Use templating language instead of `gsub` #5

Closed ronaldtse closed 6 years ago

ronaldtse commented 6 years ago

HTML templates are currently "filled-in" within isodoc using gsub. If the content included a phrase like For CSS we should use SCSS templates as you can see in asciidoctor-reveal.js (a key that is being replaced), then the templating won't work properly.

We should use template engines to interpolate the HTML instead.

For example, asciidoctor-reveal.js uses the Slim template language. Personally, I think we can use the Liquid template language to create HTML templates.

This way the content of the templates can be easily changed.

opoudjis commented 6 years ago

Will be painless to move to Liquid

ronaldtse commented 6 years ago

Awesome thanks!

opoudjis commented 6 years ago

Done for all three standards formats.