Sha256: dc9536ae48470aa99500454c475f9920ce90fe51cea46457aaae6622c4795f0b
Contents?: true
Size: 951 Bytes
Versions: 3
Compression:
Stored size: 951 Bytes
Contents
module Gumdrop module Util module ViewHelpers def hidden(&block) #no-op end def markdown(source) eng= Gumdrop::Renderer.for 'markdown' unless eng.nil? eng.new(source).render else raise StandardError, "Markdown is not available: Include a Markdown engine in your Gemfile!" end end def textile(source) eng= Gumdrop::Renderer.for 'textile' unless eng.nil? eng.new(source).render else raise StandardError, "Textile is not available: Include a Textile engine in your Gemfile!" end end def config site.config end def data site.data end def gumdrop_version ::Gumdrop::VERSION end end end class << self def view_helpers(&block) Util::ViewHelpers.class_eval &block end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gumdrop-1.0.2 | lib/gumdrop/util/view_helpers.rb |
gumdrop-1.0.1 | lib/gumdrop/util/view_helpers.rb |
gumdrop-1.0.0 | lib/gumdrop/util/view_helpers.rb |