module Haml::Helpers
def tab_up(i = 1)
baz
bar
foo
Produces:
%strong baz
- tab_down
%p bar
- tab_up
%h1 foo
For example:
to the lines of the template.
Increments the number of tabs the buffer automatically adds
def tab_up(i = 1) haml_buffer.tabulation += i end