Fire-Dragon-DoL Fire-Dragon-DoL - 1 year ago 122
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).

Answer Source

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

Found in slim readme:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download