Just getting started with staticmatic and I am having a little trouble
passing blocks to view helpers. I have this helper:
def quote_block(&block)
output = "<blockquote><div>"
output << yield
output << "</div></blockquote>"
output
end
In my view I have:
= quote_block { "<p>ScreenSteps has been a huge factor in my success
in my position.</p>"}
That works.
What I would like to do is something like this:
= quote_block do
%p "ScreenSteps has been a huge factor in my success in my
position."
But I can't get that to work. Staticmatic doesn't seem to recognize
that I am passing a block unless I use the {}.
Any ideas?
Thanks,
Greg DeVore