View Source Slime.Parser.TextBlock (slime v1.3.1)

Utilities for parsing text blocks.

Summary

Functions

Given a text block and its declaration indentation level (see below), produces a string (or a dynamic EEx tuple) that can be inserted into the tree.

Given a text block, returns the text without indentation.

Functions

Link to this function

render_content(lines, declaration_indent)

View Source

Given a text block and its declaration indentation level (see below), produces a string (or a dynamic EEx tuple) that can be inserted into the tree.

nested | Text block

 that spans over multiple lines

^ declaration indent

Link to this function

render_without_indentation(lines)

View Source

Given a text block, returns the text without indentation.