Module: Erubis::NoCodeEnhancer

Module | Erubis::NoCodeEnhancer
In: | erubis/enhancer.rb

remove code and leave text, especially useful when validating HTML tags.

ex.

      $ erubis -s -E NoCode file.eruby | tidy -errors

this is language independent.

### Methods

add_expr add_postamble add_preamble add_stmt add_text

### Public Instance methods

add_expr(src, code, indicator)

[Source]

    # File erubis/enhancer.rb, line 318
        def add_expr(src, code, indicator)
          src << "\n" * code.count("\n")
        end

add_postamble(src)

[Source]

    # File erubis/enhancer.rb, line 311
        def add_postamble(src)
        end

add_preamble(src)

[Source]

    # File erubis/enhancer.rb, line 308
        def add_preamble(src)
        end

add_stmt(src, code)

[Source]

    # File erubis/enhancer.rb, line 322
        def add_stmt(src, code)
          src << "\n" * code.count("\n")
        end

add_text(src, text)

[Source]

    # File erubis/enhancer.rb, line 314
        def add_text(src, text)
          src << text
        end

[Validate]