/gtml

GTML (GolangText Markup Language) reactive component frontend framwork using wasm

Primary LanguageGoMIT LicenseMIT

GTML (GolangText Markup Language)

golang reactive component frontend framwork using wasm

func Index(app *gtml.App) *gtml.App {
   return app.Use(
   	Div(
   		Style(
   			"background-color: cyan;",
   			"padding: 10px;",
   		),
   	)(
   		P()(
   			Text("Hello World")
   		),
   	),
   )
}

func main() {
   runtime.Runtime(
   	Index(
   		gtml.NewApp(),
   	),
   )
}