slime v1.0.0 Slime.Parser.TextBlock

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

render_content(lines, declaration_indent)

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

render_without_indentation(lines)

Given a text block, returns the text without indentation.