3 4 5 6
# File 'lib/simplesnippets/helper.rb', line 3 def snippet(slug, options = {}, &block) text = capture(&block) if block_given? Snippet.get(slug, {:text => text}.merge(options)) end