Closed nemoo closed 1 year ago
Got it to run thanks to the com-lihaoyi discord channel. To include also a svg rect, I had to use these three imports:
//> using lib "com.lihaoyi::scalatags:0.12.0"
import scalatags.Text.svgTags.*
import scalatags.Text.svgAttrs.*
import scalatags.Text.implicits.intAttr
@main def go() =
println(
svg(
height := 3,
width := 4,
rect(
x := 1,
y := 1,
width := 1,
height := 1
)
).render
)
I cannot get svg support to run with scala 3.
How to reproduce in scala-cli: This snippet gives me an error "Not found: svg"
What am I supposed to import instead of "import scalatags.vdom.SvgTags"?