Sha256: b006039c269a5c2804744afcfd8d7d61a797d338ec2441d0b13d455a9801a389

Contents?: true

Size: 523 Bytes

Versions: 5

Compression:

Stored size: 523 Bytes

Contents

class SlimController < ApplicationController
  def normal
  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 => {'@' => "div #{params[:attr]}"}) do
      render
    end
  end

  def content_for
    @hello = "Hello Slim!"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
slim-1.3.6 test/rails/app/controllers/slim_controller.rb
slim-1.3.5 test/rails/app/controllers/slim_controller.rb
slim-1.3.4 test/rails/app/controllers/slim_controller.rb
slim-1.3.3 test/rails/app/controllers/slim_controller.rb
slim-1.3.2 test/rails/app/controllers/slim_controller.rb