Skip to content

Instantly share code, notes, and snippets.

@dougal
Created April 8, 2009 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougal/91971 to your computer and use it in GitHub Desktop.
Save dougal/91971 to your computer and use it in GitHub Desktop.
// The error
Namespace prefix f on title is not defined
// View
<table>
<lift:Show.posts>
<tr>
<td><f:title>Title</f:title></td>
<td><f:body>Body</f:body></td>
</tr>
</lift:Show.posts>
</table>
// Snippet
class Show {
def posts(html: NodeSeq) =
Post.findAll.flatMap(post =>
bind("f", html,
"title" -> post.title,
"body" -> post.body))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment