Open nouun opened 1 year ago
Hello 👋
You can pass in variables in the third argument. For instance, in your layout:
body
= include(@env, "header.slime", dark: true)
And then, on the header, you will have the variables @dark
and @env[:dark]
defined. Is this what you were looking for?
I have a header which I would like to be able to pass a title from the body but I can't figure out a way to accomplish this.