The type of the wrapped value
Creates a new JsExpression with the given value.
The type of the wrapped value
Renders the JavaScript expression as a string suitable for HTML attributes or script tags. String values are treated as raw JavaScript expressions (without quotes). Other values are JSON-serialized.
Whether this is being rendered as an HTML attribute value
The JavaScript code representation of the value
Wraps a JavaScript value to be rendered as JavaScript code in HTML templates. Handles proper serialization of objects, arrays, primitives, and raw JavaScript strings.
Example