Documentation ¶
Index ¶
- Variables
- func BuiltInTemplates() embed.FS
- func Content(data *twitwoo.Data, pd PageData, fn contentFunc, w io.Writer) error
- func FuncMap(m *twitwoo.Manifest) template.FuncMap
- func Index(data *twitwoo.Data, page, pageSize int64, w io.Writer) error
- func Page(data *twitwoo.Data, id int64, w io.Writer) error
- func ProfileMediaPath(accountID int64, mediaURL string) string
- func Stylesheet(data *twitwoo.Data, w io.Writer) error
- func Tweet(data *twitwoo.Data, tw *twitwoo.Tweet, w io.Writer) error
- func TweetMediaPath(tweetID int64, media twitwoo.Media) string
- type PageData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SubDir = "" UseTagIndex = false )
View Source
var EnableSearch = false
EnableSearch enables the search functionality.
View Source
var Templates fs.FS
Templates is an optional set of templates to use.
Functions ¶
func BuiltInTemplates ¶ added in v1.2.0
BuiltInTemplates returns the built-in templates.
func ProfileMediaPath ¶
ProfileMediaPath returns the path to the media for the given profile ID and media URL.
func Stylesheet ¶ added in v1.1.0
Stylesheet writes the stylesheet to the given writer.
Types ¶
Click to show internal directories.
Click to hide internal directories.