module Haml::Helpers
def succeed(char, &block)
here.
click
Produces:
%a{:href=>"thing"} here
= succeed '.' do
click
For example:
with no whitespace between.
Appends the given character to the end of the Haml block,
def succeed(char, &block) "#{capture_haml(&block).chomp}#{char}\n" end