Controllers/Variants
// app/controllers/post_controller/postcontroller.go
package postcontroller
func (c *PostsController) Show(post *Post) error {
if post.Featured {
c.Variants("featured")
}
c.Set("post", post)
return nil
}
# app/views/posts/show.html.tpl
# app/views/posts/show.html+featured.tpl
# app/views/posts/_card.html.tpl
# app/views/posts/_card.html+featured.tpl