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-1.0.2 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-1.0.1 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.228 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.227 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.226 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.225 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.224 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.223 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.222 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.221 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.220 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.219 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.218 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.217 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.216 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.215 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.214 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.213 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.212 app/views/caboose/blocks/_render_function.html.erb
caboose-cms-0.9.211 app/views/caboose/blocks/_render_function.html.erb