Slime.Parser.TextBlock (jgy_slime v1.3.0) View Source

Utilities for parsing text blocks.

Link to this section 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.

Link to this section 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.