Sha256: 3e49387901381c90d1f83bfa62838f0ac12b9a0e5c793a3868280a1b4c7c9dc2

Contents?: true

Size: 386 Bytes

Versions: 33

Compression:

Stored size: 386 Bytes

Contents

require 'cgi'

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

      attr_reader :name, :path

      def escaped_name
        CGI.escape(@name)
      end

      def title
        "Home"
      end

      def has_path
        !@path.nil?
      end

      def base_url
        @base_url
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
gollum-2.4.0 lib/gollum/frontend/views/layout.rb
gollum-2.3.12 lib/gollum/frontend/views/layout.rb
gollum-2.3.11 lib/gollum/frontend/views/layout.rb
gollum-2.3.10 lib/gollum/frontend/views/layout.rb
gollum-2.3.9 lib/gollum/frontend/views/layout.rb
gollum-2.3.8 lib/gollum/frontend/views/layout.rb
gollum-2.3.7 lib/gollum/frontend/views/layout.rb
gollum-2.3.6 lib/gollum/frontend/views/layout.rb
gollum-2.3.5 lib/gollum/frontend/views/layout.rb
gollum-2.3.4 lib/gollum/frontend/views/layout.rb
gollum-2.3.3 lib/gollum/frontend/views/layout.rb
gollum-2.3.2 lib/gollum/frontend/views/layout.rb
gollum-2.3.1 lib/gollum/frontend/views/layout.rb
gollum-2.3.0 lib/gollum/frontend/views/layout.rb
gollum-2.2.9 lib/gollum/frontend/views/layout.rb
gollum-2.2.8 lib/gollum/frontend/views/layout.rb
gollum-2.2.7 lib/gollum/frontend/views/layout.rb
gollum-2.2.6 lib/gollum/frontend/views/layout.rb
gollum-2.2.5 lib/gollum/frontend/views/layout.rb
gollum-2.2.4 lib/gollum/frontend/views/layout.rb