Reveal.js has a wide range of configuration and supporting them all in nimiSlides is tedious work. Instead we will have a Table[string, string] which will represent the key-value pairs in the object. Then custom templates like disableVerticalCentering can modify this table instead of having to hard-code it into the main partial. It would then be implemented something like this:
template disableVerticalCentering() =
nb.setConfig("center", "false")
A setConfig, getConfig should be the main API used to not make the code dependent on the current mustache backend.
With this, users can modify all the settings themselves without having to extend nimiSlides with all the options manually.
Reveal.js has a wide range of configuration and supporting them all in nimiSlides is tedious work. Instead we will have a
Table[string, string]which will represent the key-value pairs in the object. Then custom templates likedisableVerticalCenteringcan modify this table instead of having to hard-code it into the main partial. It would then be implemented something like this:A
setConfig,getConfigshould be the main API used to not make the code dependent on the current mustache backend.With this, users can modify all the settings themselves without having to extend nimiSlides with all the options manually.