add_text (Erubis::HeaderFooterEnhancer)

    # File lib/erubis/enhancer.rb, line 585
        def add_text(src, text)
          m = nil
          text.scan(HEADER_FOOTER_PATTERN) do |txt, lspace, word, content, rspace|
            m = Regexp.last_match
            flag_trim = @trim && lspace && rspace
            super(src, txt)
            content = "#{lspace}#{content}#{rspace}" if flag_trim
            super(src, lspace) if !flag_trim && lspace
            instance_variable_set("@#{word}", content)
            super(src, rspace) if !flag_trim && rspace
          end
          #rest = $' || text                    # ruby1.8
          rest = m ? text[m.end(0)..-1] : text  # ruby1.9
          super(src, rest)
        end