DocOps / liquidoc-gem

The canonical gem source for LiquiDoc, a ruby-based documentation parsing and rendering utility enabling advanced builds with Asciidoctor, Jekyll, Liquid, and semi-structured data files.
https://docs.docops.org/liquidoc-user-manual.html
MIT License
12 stars 5 forks source link

Add Tilt integration #41

Open briandominick opened 6 years ago

briandominick commented 6 years ago

I don't know why we're limited to using Liquid templates in parse actions, since the committers at Tilt have done the work of making a universal translator for templating engines, including Liquid, Haml, Handlebars, Slim, and ERB. Let's let user's declare a templating engine, pass the work on to Tilt, and call it a day.

- action: parse
  data: mydata.json
  builds:
    - template: _templates/haml/left-nav.html
      engine: haml
      output: _build/left-nav.html
    - template: _template/slim/top-nav.html
      engine: slim
      output: _build/top-nav.html