Sha256: fb5b8817bd680f9b795a896e1a41f9e15261cca1d2b0dea38e4667472fbad5d5

Contents?: true

Size: 381 Bytes

Versions: 8

Compression:

Stored size: 381 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

      def rtfm_root
        @rtfm_root
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rtfmd-0.10301.20 lib/gollum/frontend/views/layout.rb
rtfmd-0.10301.19 lib/gollum/frontend/views/layout.rb
rtfmd-0.10301.18 lib/gollum/frontend/views/layout.rb
rtfmd-0.10301.17 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.17 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.16 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.15 lib/gollum/frontend/views/layout.rb
RTFMd-0.10301.14 lib/gollum/frontend/views/layout.rb