README ¶ prism A view library for golang Example app Refer to myapp which is implemented using prism Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Config type Renderer func New(cfg *Config) Renderer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { // the path should resemble templates/layouts/*.html LayoutPath string // the path should resemble templates/pages/*.html PagesPath string // the path should resemble templates/partials/*.html PartialsPath string FS embed.FS } type Renderer ¶ type Renderer interface { Render(w http.ResponseWriter, templateName string, layoutName string, data interface{}) } func New ¶ func New(cfg *Config) Renderer Source Files ¶ View all Source files prism.go Click to show internal directories. Click to hide internal directories.