16 lines
394 B
Go
Raw Normal View History

2017-06-15 21:03:55 +00:00
package layout
import (
"github.com/aerogo/aero"
2017-07-06 18:56:37 +00:00
"github.com/animenotifier/arn"
2017-06-15 21:03:55 +00:00
"github.com/animenotifier/notify.moe/components"
"github.com/animenotifier/notify.moe/utils"
)
// Render layout.
func Render(ctx *aero.Context, content string) string {
user := utils.GetUser(ctx)
2017-07-06 18:56:37 +00:00
openGraph, _ := ctx.Data.(*arn.OpenGraph)
return components.Layout(ctx.App, ctx, user, openGraph, content)
2017-06-15 21:03:55 +00:00
}