Sha256: dc72d60653a1ce877815894cf4fab20da9d9ddfa69c4ffca7ce20955b145738e

Contents?: true

Size: 331 Bytes

Versions: 12

Compression:

Stored size: 331 Bytes

Contents

require 'cgi'

module Precious
  module Views
    class Layout < Mustache
      include Rack::Utils
      alias_method :h, :escape_html

      attr_reader :name

      def escaped_name
        CGI.escape(@name)
      end

      def title
        "Home"
      end

      def base_path
        @base_path
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
RTFMd-0.10301.13 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.12 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.11 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.10 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.9 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.8 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.7 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.6 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.5 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.4 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.2 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.1 lib/gollum/frontend/views/layout.rb