Ok, seems i’ll go with Espresso.
It is really clean and easy.
Are there built-in support for Slim?
Can not find anywhere in docs how to use it.
Trying this:
require 'e'
require 'slim'
class Blog < E
engine :Slim
# etc.
end
and getting a weird error about no Slim engine found, though i loaded it.
The issue here is that
EspressousingTiltfor rendering.And
Tilthas no built-in support forSlim.However,
Slimdoes have built-in support forTilt🙂All you have to do is to register a new
Tilttemplate:That’s it. Now you can use it like this:
Please note
engine_ext :slim– it will informEspressoabout templates extension.Most likely you’ll name your templates like
template-name.slim