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

Version Path
caboose-cms-0.9.210 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.209 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.208 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.207 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.206 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.205 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.204 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.203 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.202 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.201 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.200 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.198 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.197 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.196 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.195 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.194 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.193 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.192 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.191 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.190 app/views/caboose/blocks/_render_function.html.erb