Sha256: 4b05f82f87810f51579359a88b38d862864cabab94e16c93685979ef2dc7b542

Contents?: true

Size: 281 Bytes

Versions: 18

Compression:

Stored size: 281 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
    end
  end
end

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
gollum-2.0.0 lib/gollum/frontend/views/layout.rb
gollum-1.4.3 lib/gollum/frontend/views/layout.rb
gollum-1.4.2 lib/gollum/frontend/views/layout.rb
read-only-gollum-1.4.0 lib/gollum/frontend/views/layout.rb
gollum-bibanon-1.4.4 lib/gollum/frontend/views/layout.rb
gollum-bibanon-1.4.3 lib/gollum/frontend/views/layout.rb
gollum-bibanon-1.4.2 lib/gollum/frontend/views/layout.rb
gollum-bibanon-1.4.1 lib/gollum/frontend/views/layout.rb
gollum-bibanon-1.3.2 lib/gollum/frontend/views/layout.rb
gollum-bibanon-1.4.0 lib/gollum/frontend/views/layout.rb
gollum-bibanon-1.3.1 lib/gollum/frontend/views/layout.rb
gollum-1.3.1 lib/gollum/frontend/views/layout.rb
jugyo-gollum-1.3.1 lib/gollum/frontend/views/layout.rb
gollum-1.2.1 lib/gollum/frontend/views/layout.rb
gollum-1.3.0 lib/gollum/frontend/views/layout.rb
gollum-1.2.0 lib/gollum/frontend/views/layout.rb
gollum-1.1.1 lib/gollum/frontend/views/layout.rb
gollum-1.1.0 lib/gollum/frontend/views/layout.rb