Expand description
JSON serde_json::Value to display string for template output.
Also defines internal runtime markers: Nunjucks-style safe strings
(RJ_SAFE) and undefined (RJ_UNDEFINED) for lookup and default filter parity.
Constants§
- RJ_
REGEXP - Object marker for
r/…/…regex literals (.test(string)incrate::renderer). - RJ_SAFE
- Object key for HTML-safe output: not re-escaped when
crate::Environment::autoescapeis on. - RJ_
UNDEFINED - Sentinel for “JavaScript
undefined” (distinct from JSONnull). Used when a name is not bound in context or globals, and fordefaultfilter two-argument semantics.
Functions§
- is_
marked_ safe trueifvis amark_safewrapper.- is_
regexp_ value trueifvis a regex literal value (r/…/…).- is_
undefined_ value trueifvis the internal undefined sentinel (undefined_value).- mark_
safe - Wrap a string so autoescape does not re-encode it (Nunjucks
markSafe). - regexp_
pattern_ flags - Pattern and flags strings for
is_regexp_valueobjects. - undefined_
value - Nunjucks
undefined-like value for unbound names. - value_
to_ string - value_
to_ string_ raw - Raw string content for escaping (unwraps safe; undefined → empty).