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.2.3 lib/gollum/frontend/views/layout.rb
gollum-2.2.2 lib/gollum/frontend/views/layout.rb
gollum-2.2.1 lib/gollum/frontend/views/layout.rb
gollum-2.2.0 lib/gollum/frontend/views/layout.rb
gollum-2.1.10 lib/gollum/frontend/views/layout.rb
gollum-2.1.9 lib/gollum/frontend/views/layout.rb
gollum-2.1.8 lib/gollum/frontend/views/layout.rb
gollum-2.1.7 lib/gollum/frontend/views/layout.rb
gollum-2.1.6 lib/gollum/frontend/views/layout.rb
gollum-2.1.4 lib/gollum/frontend/views/layout.rb
gollum-2.1.3 lib/gollum/frontend/views/layout.rb
gollum-2.1.2 lib/gollum/frontend/views/layout.rb
gollum-2.1.0 lib/gollum/frontend/views/layout.rb