refactor: move document head includes out of via configuration into their own append funcs; update examples
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package via
|
||||
|
||||
import "github.com/go-via/via/h"
|
||||
|
||||
type LogLevel int
|
||||
|
||||
const (
|
||||
@@ -22,15 +20,6 @@ type Options struct {
|
||||
// The title of the HTML document.
|
||||
DocumentTitle string
|
||||
|
||||
// Elements to include in the head of the base HTML document.
|
||||
// Useful for including css stylesheets and JS scripts.
|
||||
DocumentHeadIncludes []h.H
|
||||
|
||||
// Elements to include in the bottom of the body of the base
|
||||
// HTML document.Useful for including JS scripts or a footer.
|
||||
DocumentBodyIncludes []h.H
|
||||
|
||||
// Plugins to extend the capabilities of the `Via` application.
|
||||
// Check `https://github.com/go-via/plugins` for a list of available plugins.
|
||||
Plugins []Plugin
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user