Sha256: 7b738f73474969757e518ba0582c8e57ea277ff43b20f8cbcf0b9aa529cc50ab

Contents?: true

Size: 1019 Bytes

Versions: 24

Compression:

Stored size: 1019 Bytes

Contents

# Subdirectory controller
# -----------------------

# Before

before 'index.html.haml' do
  @before_index_literal = :subdirectory
end

before /index\.html/ do
  @before_index_regexp = :subdirectory
end

before do
  @before_all = :subdirectory
end

before 'fail' do
  @fail = true
end

before /fail/ do
  @fail = true
end

before 'before_render_text.html.haml' do
  instead render(:text => 'subdirectory')
end

before 'before_render_partial.html.haml', 'before_non_existent.html' do
  instead render(:path => '_partial.html.haml')
end

# Helpers

helpers do
  def helper
    :subdirectory
  end
end

# Ignore

ignore 'ignore.html.haml'

# Layout

layout(
  'layout_controller.html.haml' => 'layout.html.haml',
  'layout_controller_from_root.html.haml' => '/layout.html.haml'
)

before 'layout_action.html.haml' do
  layout 'layout.html.haml'
end

before 'layout_action_from_root.html.haml' do
  layout '/layout.html.haml'
end

# Priority

priority(
  '/before_render_partial.html.haml' => 1,
  'index.html.haml' => -1
)

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
stasis-0.1.23 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.22 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.21 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.20 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.19 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.18 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.17 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.16 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.15 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.14 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.13 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.12 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.11 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.10 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.9 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.8 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.7 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.6 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.5 spec/fixtures/project/subdirectory/controller.rb
stasis-0.1.4 spec/fixtures/project/subdirectory/controller.rb