pub fn format_value_for_string(val: &Value) -> DiagnosticResult<String>Expand description
Format a Value as a string for inline interpolation. Render a script value as inline text: the single renderer behind placeholder expansion everywhere (streaming file templates and engine string expansion alike), so one value renders one way in every context. Pipes are refused: they carry streams between steps, not text, and silently rendering a handle hides a bug.
Float rendering is defined as f.to_string(): Rust’s Display for
f64 already produces the shortest round-trip decimal (Ryū since
1.36), so ECHO / {{ }} output stays clean (3.14, not
3.140000) with no extra dependency.