mirror of
https://github.com/Xevion/glance.git
synced 2025-12-06 03:15:13 -06:00
21 lines
319 B
Go
21 lines
319 B
Go
package glance
|
|
|
|
import (
|
|
"html/template"
|
|
)
|
|
|
|
type htmlWidget struct {
|
|
widgetBase `yaml:",inline"`
|
|
Source template.HTML `yaml:"source"`
|
|
}
|
|
|
|
func (widget *htmlWidget) initialize() error {
|
|
widget.withTitle("").withError(nil)
|
|
|
|
return nil
|
|
}
|
|
|
|
func (widget *htmlWidget) Render() template.HTML {
|
|
return widget.Source
|
|
}
|