Skip to content

Template Languages

Arjan van Wijk edited this page Nov 27, 2018 · 1 revision

A history of the choice of template languages for muban can be found in this issue.

There are quite a few requirements to get full Muban integration:

  • There has to be a JS implementation of the template language
  • There has to be a webpack loader to support the template
  • The webpack loader needs to support webpack resolving and dynamic templates
  • A pre-compliation step for the template files would be very useful for the build step (to create the HTML files)
  • Custom loaders have to be written to support storybook presets.

Besides these requirements, it's also a lot of work to write the full implementation, and it's even more work to maintain everything across multiple 'versions' of Muban. Maybe in the future when functionalities are more abstracted, it could become less work, but currently we need a very good reason to add an additional template language.

Handlebars:

Solved all of these requirements

Twig

Still open PR and a closed ticket, so no future hope, unless we create a fork.

Clone this wiki locally