Sha256: 5bf5ca394d62b4706f49e2c19e4e73ea9e70804e108de1ad4c3ded135c32e846

Contents?: true

Size: 330 Bytes

Versions: 7

Compression:

Stored size: 330 Bytes

Contents

require 'frank/lorem'

module Frank
  module TemplateHelpers
    include FrankHelpers if defined? FrankHelpers
  
    def render_partial(path)
      pieces = path.split('/')
      partial = '_' + pieces.pop
      render_path File.join(pieces.join('/'), partial)
    end
    
    def lorem
      Frank::Lorem
    end
    
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
frank-0.2.6 lib/frank/template_helpers.rb
frank-0.2.5 lib/frank/template_helpers.rb
frank-0.2.4 lib/frank/template_helpers.rb
frank-0.2.3 lib/frank/template_helpers.rb
frank-0.2.2 lib/frank/template_helpers.rb
frank-0.2.1 lib/frank/template_helpers.rb
frank-0.2.0 lib/frank/template_helpers.rb