Related to the above what is the new syntax for li...
# javascript
g
Related to the above what is the new syntax for links? Previously we had
a("<http://somewhere>") {}
but this no longer compiles. Although that's what the documents show. One would expect:
a {
href = "<http://somewhere>"
}
But this doesn't work either.
j
Is something like this working?
Copy code
a(href="<http://somewhere>") {
   +"link text"
}
g
Sadly not. I'm using the latest version where the RBuilder stuff seems to have been replaced by create methods. But as a result everything needs to go into the receiver...
So instead of:
div("container") {}
I find I have to write:
div { className = ClassName("container") }
j
Best to read the documentation on git. Likely the link is created within an unsupported element? Above example is working for us.
g
I was able to get the below working. There was a separate porting issue that prevented the link from being displayed.
a {
href = "<http://somewhere>"
+"text"
}
t
Works fine
g
Yeah - I got there in the end. Thank you!