Sha256: f799de0645c25abaac0ded6b72c8d40c4010d1e7c82d4fec8bc77636ea6d47bd
Contents?: true
Size: 744 Bytes
Versions: 2
Compression:
Stored size: 744 Bytes
Contents
module <%= module_name %> # All Slice code is expected to be namespaced inside this module. class Application < Merb::Controller controller_for_slice private # Construct a path relative to the public directory def public_path_for(type, *segments) ::<%= module_name %>.public_path_for(type, *segments) end # Construct an app-level path. def app_path_for(type, *segments) ::<%= module_name %>.app_path_for(type, *segments) end # Construct a slice-level path def slice_path_for(type, *segments) ::<%= module_name %>.slice_path_for(type, *segments) end end class Main < Application def index render end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
merb-slices-0.9.4 | lib/generators/templates/thin/application.rb |
thorero-gen-0.9.4 | templates/application/slice/thin/application.rb |