flamingo icon indicating copy to clipboard operation
flamingo copied to clipboard

Easy start with templates and assets

Open bastianccm opened this issue 5 years ago • 0 comments

Document the minimum requirements such as:

package main

import (
	"flamingo.me/dingo"
	"flamingo.me/flamingo/v3"
	"flamingo.me/flamingo/v3/core/gotemplate"
)

func main() {
	flamingo.App([]dingo.Module{
		new(gotemplate.Module),
	})
}
- name: index
  path: /
  controller: flamingo.render(tpl="index")
- name: static
  path: /asset/*name
  controller: flamingo.static.file

bastianccm avatar Feb 14 '20 08:02 bastianccm