I haven't been able to find a solution elsewhere. This is the code I'd like to work:
<%= render :layout => "l/run" do %><%-
content_for :error do
-%>Error - Missing arguments<%-
end -%>
<%= render :inline => @api.data.views["html"], :locals => {:result => @result} %>
<%- end -%>
and in l/run:
<%-
...
if readQuery.value?(nil)
-%><%= yield :error %><%-
else
...
-%><%= yield %><%-
...
end
-%>
I feel like this approach should work but am stumped.