Sha256: a0b7018e247065e37f1a6dd56abc65ed1ca8bdf52add2face9675e7e057013ce

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

module Juici::Controllers
  class Index

    def index
      yield [:index,  {:active => :index}]
    end

    def about
      content = GitHub::Markdown.render(File.read("lib/juici/views/README.markdown"))
      content.gsub!(/<h(\d+)>/, '<h\1 class="block-header">')
      yield [:about, {:active => :about, :content => content}]
    end

    def support
      yield [:support, {:active => :support}]
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
juici-0.0.1.alpha1 lib/juici/controllers/index.rb
juici-0.0.0.alpha1 lib/juici/controllers/index.rb