How to pass parameters to partial in Comfortable Mexican Sofa. I have something like this:
module MySnippetHelper
def my_partial
# add something into array
end
end
Partial:
<% my_partial.each do |item| %>
# some text to display
<% end unless my_partial.empty? %>
And I call in my snippet in Comfortable Mexican Sofa:
{{ cms:partial:snippets/my_partial }}
How can I pass a value to the partial so it could print something like this:
<% my_partial.each do |item| %>
<%= # My variable that I have passed to the partial %>
<% end unless my_partial.empty? %>
I get the display right, but I can't make it to display my custom variable to the partial