With the v0.7 & v0.8 releases, HypertextLiteral.jl adds support for JavaScript interpolation.
- Within the
<script>
tag, variables go though a different translation path to convert them to JavaScript. This is extensible so that custom libraries could provide their own translation. Moreover, there is a hook wherePluto.jl
provides its own marshalling that is speedier. - Within attributes starting with
on
, such asonclick
, this same JavaScript translation occurs. - Within a
<style>
tag, variable interpolation better supports CSS constructs; this method of interpolaion is the same as in attribute values. - The documentation is now revisited to have one page per interpolation context, plus a starting page with an overview of key features to provide a taste of what’s possible.
At this time, I’m looking for any final feedback before we tag 1.0
– once tagged, I’d like to keep this library stable without further breaking changes.