module Haml::Helpers
def surround(front, back = front, &block)
- Yield: - A block of Haml to surround
Parameters:
-
back
(String
) -- The string to add after the Haml -
front
(String
) -- The string to add before the Haml
def surround(front, back = front, &block) output = capture_haml(&block) "#{front}#{output.chomp}#{back}\n" end