An inner DSL in Scala to write documents