scalatags
scalatags copied to clipboard
ScalaTags is a small XML/HTML construction library for Scala.
```scala import scalatags.JsDom.all._ import scalatags.JsDom.implicits._ div(height := "800", width := "500") ``` gives error ``` No PixelStyleValue defined for type String; scalatags does not know how to use String as...
scala.xml.PrettyPrinter does not generate validate W3 html markup language, and alters the orginal placements of tags. For example script(src:=""/assets/jquery.min.js"") generates < script src="/assets/jquery.min.js"> and is converted to < script src="/assets/jquery.min.js"/>...
works: ```scala borderRadius := "3px" ``` doesn't work: ```scala borderRadius := 3 ```
Fresh pull of master branch: > sbt > +publishLocal > sbt.ResolveException: unresolved dependency: com.lihaoyi#scalatex-api_2.10;0.3.5: not found
Currently they don't work. You can do weird workarounds by embedding the entire text of a stylesheet into a string: ```scala tags2.style(s"@media (min-width: 60em) {${styles.Wide.sheet}}"), tags2.style(s"@media (max-width: 60em) {${styles.Narrow.sheet}}"), ```...
You've got pseudo-selectors. Are psuedo-elements (https://developer.mozilla.org/en-US/docs/Web/CSS/pseudo-elements) supported in any form? Wanted to add `::after` to an element. I see mention of `::after` here: https://github.com/lihaoyi/scalatags/blob/master/scalatags/shared/src/main/scala/scalatags/generic/Styles.scala#L575
I want to be able to write something like ``` .myClass input[type="radio"] { /* ... */ } ``` There doesn't appear to be any documentation for attribute selectors nor do...
Otherwise you have to do the following to inherit from `Frag`: ```scala object View extends Frag{ val view: Frag = ??? def render = view.render def applyTo(t: dom.Element) = t.appendChild(render)...
This comes up every now and then in the [gitter](https://gitter.im/lihaoyi/scalatags): > [No idea why. In general if I don’t want to pollute the namespace, how should I import scalatags?](https://gitter.im/lihaoyi/scalatags?at=56fa81598f5147e119f16594) >...
It would be great to make possible to set the wrap tag of the HTMLTextAreaElement as described here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-wrap. Is it possible yet or these tags are missing ? Thanks...