Sha256: 9397acd8bf29f57898f8d62374a6c4eb992af25a6362847428291914c9df0a35
Contents?: true
Size: 689 Bytes
Versions: 23
Compression:
Stored size: 689 Bytes
Contents
<%# sorry, we'd rather put this logic in the controller, but there's no way to call a template-with-yield (aka partial layout) from controller, grr. Could do it from a helper, but we want to minimize helpers that pollute app's helper space. %> <% unless @results.failed? %> <%# html5 meta microdata, can be pulled out by js for ajax requests %> <%= tag("meta", :itemprop=>"total_items", :content => @results.total_items) %> <% end %> <% if @partial_wrapper %> <%= render :layout => @partial_wrapper, :locals => {:results => @results} do bento_search(@results) end -%> <% else %> <%= bento_search(@results) %> <% end %>
Version data entries
23 entries across 23 versions & 1 rubygems