Sha256: 989992102643cacf14bae5e284fe512a890463d367551d46134616b53c58ac35

Contents?: true

Size: 564 Bytes

Versions: 3

Compression:

Stored size: 564 Bytes

Contents

class SlimController < ApplicationController
  def normal
  end

  def xml
  end

  def no_layout
    render :layout => false
  end

  def variables
    @hello = "Hello Slim with variables!"
  end

  def partial
  end

  def streaming
    @hello = "Hello Streaming!"
    render :content_for, :stream => true
  end

  def integers
    @integer = 1337
  end

  def thread_options
    Slim::Engine.with_options(:shortcut => {'@' => { :attr => params[:attr] }}) do
      render
    end
  end

  def content_for
    @hello = "Hello Slim!"
  end

  def helper
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slim-2.1.0 test/rails/app/controllers/slim_controller.rb
slim-2.0.3 test/rails/app/controllers/slim_controller.rb
slim-2.0.2 test/rails/app/controllers/slim_controller.rb