- rendering helpers moved to their own file (separate from response helpers) - create a unified render helper instead of "buffered_render_basic_X" and "buffered_render_tweet_X" - this helper takes 2 data objects: one with global data (tweet trove, logged in user, etc) and one page-specific - this lets us remove the disgusting interface type - modify the User List template to use UserIDs indexing into a global data object instead of a list of Users
12 lines
248 B
Smarty
12 lines
248 B
Smarty
{{define "list"}}
|
|
<div class="users-list-container">
|
|
{{range .}}
|
|
{{$user := (user .)}}
|
|
<div class="user">
|
|
{{template "author-info" $user}}
|
|
<p class="bio">{{$user.Bio}}</p>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|