slime v1.2.0 Slime.Parser.TextBlock 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.