Skip to content

Instantly share code, notes, and snippets.

@jstrachan
Forked from chirino/gist:2035882
Created March 14, 2012 11:39
Show Gist options
  • Save jstrachan/2035940 to your computer and use it in GitHub Desktop.
Save jstrachan/2035940 to your computer and use it in GitHub Desktop.
kotlin code:
val builder = HtmlBuilder(usersLocale).useLongDates()
"foo $a bar $b".build(builder)
Creates a function
fun template1(out: HtmlBuilder, a: String, b: Foo): Unit {
out.append("foo ")
out.append(a)
out.append(" bar ")
out.append(b)
}
template1(builder, a, b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment