ScalaTags interoperability
Fastscala is not tied to scala-xml, but the libraries that are on top of do use it.
If you want to use ScalaTags, you can use for example an implicit conversion to scala-xml:
implicit def scalaTags2ScalaXml(frag: TypedTag[String]): NodeSeq = scala.xml.Unparsed(frag.render)
Integrating ScalaTags using an implicit conversion
// You can use an implicit conversion from ScalaTags to scala-xml:
implicit def scalaTags2ScalaXml(frag: TypedTag[String]): NodeSeq =
scala.xml.Unparsed(frag.render)
BSBtn().BtnPrimary.lbl("Open Modal").ajax(implicit fsc =>
BSModal5.verySimple("Simple modal", "Close")({ modal =>
implicit fsc =>
import scalatags.Text.all._
div(
p("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id elit velit. Proin convallis ultrices nisi ac fermentum."),
p("Nunc a lobortis arcu. Nullam cursus dapibus risus in pulvinar.")
)
})
).btn