Sha256: b51abebc345cab9a7c278f29c3677a33989efefe922b62b724e64082a095e7da

Contents?: true

Size: 438 Bytes

Versions: 11

Compression:

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

      def css # custom css
        @css
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gollum-2.4.11 lib/gollum/frontend/views/layout.rb
gollum-2.4.10 lib/gollum/frontend/views/layout.rb
gollum-2.4.9 lib/gollum/frontend/views/layout.rb
gollum-2.4.8 lib/gollum/frontend/views/layout.rb
gollum-2.4.7 lib/gollum/frontend/views/layout.rb
gollum-2.4.6 lib/gollum/frontend/views/layout.rb
gollum-2.4.5 lib/gollum/frontend/views/layout.rb
gollum-2.4.4 lib/gollum/frontend/views/layout.rb
gollum-2.4.3 lib/gollum/frontend/views/layout.rb
gollum-2.4.2 lib/gollum/frontend/views/layout.rb
gollum-2.4.1 lib/gollum/frontend/views/layout.rb