Core types for the viewpoint-js macro.
This crate provides the [ToJsValue] trait used for interpolating Rust values
into JavaScript code via the js! macro, as well as utilities for escaping
strings for use in JavaScript.
Example
use ;
// ToJsValue for interpolation
assert_eq!;
assert_eq!;
assert_eq!;
// Direct string escaping
assert_eq!;
// CSS attribute selector escaping (for use inside JS strings)
assert_eq!;