Sha256: 8881169e0bd7b0440ee0b8da05ac73c289616c112e5878eead46377ecb2ce4c6

Contents?: true

Size: 353 Bytes

Versions: 19

Compression:

Stored size: 353 Bytes

Contents

module Gumdrop
  
  module ViewHelpers
    
    def hidden(&block)
      #no-op
    end
    
    def markdown(source)
      m= Tilt['markdown'].new { source }
      m.render
    end
    
    def textile(source)
      m= Tilt['textile'].new { source }
      m.render
    end
    
    def gumdrop_version
      ::Gumdrop::VERSION
    end
    
  end
  
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
gumdrop-0.5.2 lib/gumdrop/view_helpers.rb
gumdrop-0.5.1 lib/gumdrop/view_helpers.rb
gumdrop-0.5 lib/gumdrop/view_helpers.rb
gumdrop-0.4.0 lib/gumdrop/view_helpers.rb
gumdrop-0.3.10 lib/gumdrop/view_helpers.rb
gumdrop-0.3.9 lib/gumdrop/view_helpers.rb
gumdrop-0.3.8 lib/gumdrop/view_helpers.rb
gumdrop-0.3.7 lib/gumdrop/view_helpers.rb
gumdrop-0.3.6 lib/gumdrop/view_helpers.rb
gumdrop-0.3.5 lib/gumdrop/view_helpers.rb
gumdrop-0.3.4 lib/gumdrop/view_helpers.rb
gumdrop-0.3.3 lib/gumdrop/view_helpers.rb
gumdrop-0.3.2 lib/gumdrop/view_helpers.rb
gumdrop-0.3 lib/gumdrop/view_helpers.rb
gumdrop-0.2.16 lib/gumdrop/view_helpers.rb
gumdrop-0.2.15 lib/gumdrop/view_helpers.rb
gumdrop-0.2.14 lib/gumdrop/view_helpers.rb
gumdrop-0.2.13 lib/gumdrop/view_helpers.rb
gumdrop-0.2.12 lib/gumdrop/view_helpers.rb