Sha256: 4afabac4d4b6f17dab83b6df2adcb857c930e1c0ff1beaf1953231f29ccfa897

Contents?: true

Size: 511 Bytes

Versions: 53

Compression:

Stored size: 511 Bytes

Contents

<%= modules[0..-2].inject(""){ |s, mod| s+= "; " if (s.length > 0); s+="module #{mod}"}+"\n" if (modules.length > 1)%><%= "\n" if (modules.length > 1) %><% tab = (modules.length > 1) ? "    " : "" 
%><%=tab%>module <%=modules[-1]%>
<%=tab%>    include Spider::App
<%=tab%>    @controller = :<%= module_name %>Controller
<%=tab%>end
<%= "\n"+modules[0..-2].inject(""){ |s, mod| s+= "; " if (s.length > 0); s+="end" if (modules.length > 1)} 
%>require 'apps/<%= app_path %>/controllers/<%= app_name %>_controller'

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
spiderfw-1.0.1 blueprints/app/_init.rb
spiderfw-1.0.0 blueprints/app/_init.rb
spiderfw-0.6.39 blueprints/app/_init.rb
spiderfw-0.6.38 blueprints/app/_init.rb
spiderfw-0.6.37 blueprints/app/_init.rb
spiderfw-0.6.35 blueprints/app/_init.rb
spiderfw-0.6.34 blueprints/app/_init.rb
spiderfw-0.6.33 blueprints/app/_init.rb
spiderfw-0.6.32 blueprints/app/_init.rb
spiderfw-0.6.31 blueprints/app/_init.rb
spiderfw-0.6.30 blueprints/app/_init.rb
spiderfw-0.6.29 blueprints/app/_init.rb
spiderfw-0.6.28 blueprints/app/_init.rb
spiderfw-0.6.27 blueprints/app/_init.rb
spiderfw-0.6.26 blueprints/app/_init.rb
spiderfw-0.6.26.pre1 blueprints/app/_init.rb
spiderfw-0.6.25 blueprints/app/_init.rb
spiderfw-0.6.24 blueprints/app/_init.rb
spiderfw-0.6.23 blueprints/app/_init.rb
spiderfw-0.6.22 blueprints/app/_init.rb