Skip to content

Instantly share code, notes, and snippets.

@chirino
Created April 21, 2010 20:24
Show Gist options
  • Save chirino/374358 to your computer and use it in GitHub Desktop.
Save chirino/374358 to your computer and use it in GitHub Desktop.
object transformer extends Transformer {
$(".people").contents {
people.flatMap { p =>
transform($("li:first-child")) {
$("a.person").contents = p.name
$("a.person").attribute("href").value = "http://acme.com/bookstore/" + p.name
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment