If I understand correctly, there is no planning to improve such situation. There will be no receiver functions or scope injection. May be, it is possible to do «Import aliases»
trait SomeTrait{
imports html = {
import _root_.part1.part2.html._
import _root_.part1.template._
}
def html(given Html=>):Html = ???
}
object Main extends SomeTrait{
def main()=Unit
Html{
header{}
body{}
}
}
}
Unfortunately, now, the Scala imports is occasionally a headache.
see also: