Fire-Dragon-DoL Fire-Dragon-DoL - 3 months ago 19x
Ruby Question

Include a slim file in another slim file

I'm working on a static website (so no real server support) and I would like to include a small slim snippet in another, possibly passing a variable to it.

Is this possible? In rails is quite easy, though the

method, but I have no idea how to do it on slim (obviously
method doesn't work for slim).


Looks like it can be done in this way:'template.slim', optional_option_hash).render(scope)

Found in slim readme: