Applied new layout system

This commit is contained in:
2019-06-03 12:20:17 +09:00
parent 36427a1501
commit 3268488b7b
26 changed files with 346 additions and 308 deletions

9
utils/page/page.go Normal file
View File

@ -0,0 +1,9 @@
package page
import "github.com/aerogo/aero"
// Get registers a layout rendered route and a contents-only route.
func Get(app *aero.Application, route string, handler aero.Handler) {
app.Get(route, handler)
app.Get("/_"+route, handler)
}