Class: BarefootJS::SafeString
- Inherits:
-
String
- Object
- String
- BarefootJS::SafeString
- Defined in:
- lib/barefoot_js.rb
Overview
Marker wrapper for a string that is ALREADY finished HTML and must not
be re-escaped by Context#h -- e.g. a named-slot / children capture
(renderComponent's output-buffer slice) forwarded from a parent
template into a child's vars Hash. Stdlib ERB's <%= has no built-in
"safe string" concept the way Twig's Markup or Kolon's mark_raw
do, so the escape decision that elsewhere falls out of the template
engine has to be carried on the VALUE itself here; see
Backend::Erb#mark_raw, which is what actually wraps a string in this
class.