com-lihaoyi / scalatags

ScalaTags is a small XML/HTML construction library for Scala.
https://com-lihaoyi.github.io/scalatags/
MIT License
758 stars 117 forks source link

Fix for short._ and manual imports. #106

Closed stewSquared closed 8 years ago

stewSquared commented 8 years ago

Addresses issue #86 by modifying import short._ to work properly in the scope that the docs suggest. Formerly, the test 'manualImports was defined after an import bundle.all._, allowing errors in the implementation to get through.

Note that the example from the docs that imported:

import bundle.{attrs => attr, styles => css, _}
import bundle.tags._ 

Now requires two additional imports:

import bundle.implicits._
import scalatags.DataConverters._ 
lihaoyi commented 8 years ago

This looks good, thanks!