class
Can::Parser
- Can::Parser
- Reference
- Object
Overview
Strict XML-ish parser for the can template language. Tags must be
explicitly closed (or self-closed). Quoted attribute values are literal;
expression-form attributes (={...}) evaluate Crystal.
<style> and <script> switch to raw-text mode — content is captured
verbatim until the matching close tag, no nested-tag or interpolation
parsing. (Trade-off: no {expr} inside CSS for now; revisit later.)
Defined in:
can/parser.crConstant Summary
-
RAW_TEXT_TAGS =
{"style", "script"}