Sha256: 3ea972f0f53e026eadfcfe3dd882f74df48b68133b66ba1728e995c182893a57
Contents?: true
Size: 809 Bytes
Versions: 40
Compression:
Stored size: 809 Bytes
Contents
<%== ERB.new(render_function).result(self.instance_eval { binding }) %> <% if caboose_js && caboose_js.length > 1 %> <% caboose_js.to_a.each_with_index do |js, ind| %> <% next if ind == 0 %> <% content_for :js do %> <% begin %> <% erb = ERB.new(js).result(self.instance_eval { binding }) %> <%== erb %> <% rescue %> <% Caboose.log("JS ERROR for block #{block.id}") %> <% end %> <% end %> <% end %> <% end %> <% if caboose_css && caboose_css.length > 1 %> <% caboose_css.to_a.each_with_index do |css, ind| %> <% next if ind == 0 %> <% content_for :css do %> <% begin %> <% erb = ERB.new(css).result(self.instance_eval { binding }) %> <%== erb %> <% rescue %> <% Caboose.log("CSS ERROR for block #{block.id}") %> <% end %> <% end %> <% end %> <% end %>
Version data entries
40 entries across 40 versions & 1 rubygems