Trying to get scalatags to produce svg output.
How to reproduce in scala-cli:
This snippet gives me an error "Not found: svg"
//> using scala "3"
//> using lib "com.lihaoyi::scalatags:0.12.0"
import scalatags.Text.all._
import scalatags.vdom.SvgTags
@main def go() =
println(html(div("")).render) // works
println(svg(height := "3", width := "4").render) // does not work: "Not found: svg"
What am I supposed to import instead of "import scalatags.vdom.SvgTags"? The documentation https://com-lihaoyi.github.io/scalatags/ does not help.
Got it to run thanks to the com-lihaoyi discord channel. To include also a svg rect, I had to use these three imports: