Sha256: 5aa1d0fa2b877813d9aa4bcfab76093f1c3af27a1e5341e58ba0ddd90bf6adc0

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

class TodoPart < Merb::PartController
  self._template_root = File.expand_path(File.join(File.dirname(__FILE__), "views"))
  
  before :load_todos
  
  def list
    render
  end
  
  def one
    render :list, :layout => false
  end
  
  def load_todos
    @todos = ["Do this", "Do that", 'Do the other thing']
  end
  
  def formatted_output
    render
  end
  
  def part_with_params
    render
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
merb-parts-0.9.3 spec/fixtures/parts/todo_part.rb