Applied new layout system
This commit is contained in:
9
utils/page/page.go
Normal file
9
utils/page/page.go
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user