Sha256: 4f19278981f203a7f9d1f8415a6c4267fb32b94bb1d364aa04b9047cc395a7f6

Contents?: true

Size: 354 Bytes

Versions: 13

Compression:

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

13 entries across 13 versions & 1 rubygems

Version Path
gumdrop-0.8.0 lib/gumdrop/view_helpers.rb
gumdrop-0.7.5 lib/gumdrop/view_helpers.rb
gumdrop-0.7.4 lib/gumdrop/view_helpers.rb
gumdrop-0.7.3.1 lib/gumdrop/view_helpers.rb
gumdrop-0.7.3 lib/gumdrop/view_helpers.rb
gumdrop-0.7.2 lib/gumdrop/view_helpers.rb
gumdrop-0.7.1 lib/gumdrop/view_helpers.rb
gumdrop-0.7.0 lib/gumdrop/view_helpers.rb
gumdrop-0.6.4 lib/gumdrop/view_helpers.rb
gumdrop-0.6.3 lib/gumdrop/view_helpers.rb
gumdrop-0.6.2 lib/gumdrop/view_helpers.rb
gumdrop-0.6.1 lib/gumdrop/view_helpers.rb
gumdrop-0.6.0 lib/gumdrop/view_helpers.rb