Sha256: b8151f8a31f7b4d2504feb1deeb49515d4f10013070ff6aa038278223892caf7

Contents?: true

Size: 195 Bytes

Versions: 5

Compression:

Stored size: 195 Bytes

Contents

module Snippets
  module Helper
    def snippet(slug, options = {}, &block)
      text = capture(&block) if block_given?
      Snippet.get(slug, {:text => text}.merge(options))
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
djanowski-snippets-0.1.3 lib/snippets/helper.rb
djanowski-snippets-0.1.4 lib/snippets/helper.rb
djanowski-snippets-0.1.5 lib/snippets/helper.rb
djanowski-snippets-0.1.6 lib/snippets/helper.rb
djanowski-snippets-0.1.7 lib/snippets/helper.rb