Improved composability

This commit is contained in:
2017-06-22 18:04:14 +02:00
parent dd7355a45d
commit e652e6655f
3 changed files with 10 additions and 2 deletions

View File

@ -34,6 +34,6 @@ func GetPostsByUser(ctx *aero.Context) string {
postables[i] = arn.ToPostable(post)
}
return ctx.HTML(components.PostableList(postables))
return ctx.HTML(components.LatestPosts(postables, user))
}