feat(nebula): create Home model for home page

This commit is contained in:
Prad Nukala
2024-10-02 18:01:30 -04:00
parent 3baec2745b
commit 8d8935c045
8 changed files with 25 additions and 12 deletions
+8
View File
@@ -0,0 +1,8 @@
// Code generated from Pkl module `models`. DO NOT EDIT.
package models
type Home struct {
Hero *Hero `pkl:"hero"`
Stats *Stats `pkl:"stats"`
}
+1 -3
View File
@@ -8,9 +8,7 @@ import (
)
type Models struct {
Hero *Hero `pkl:"hero"`
Stats *Stats `pkl:"stats"`
Home *Home `pkl:"home"`
}
// LoadFromPath loads the pkl module at the given path and evaluates it into a Models
+1
View File
@@ -5,6 +5,7 @@ import "github.com/apple/pkl-go/pkl"
func init() {
pkl.RegisterMapping("models", Models{})
pkl.RegisterMapping("models#Home", Home{})
pkl.RegisterMapping("models#Hero", Hero{})
pkl.RegisterMapping("models#Button", Button{})
pkl.RegisterMapping("models#Image", Image{})