Extract method to output entries
This commit is contained in:
parent
0be444aa29
commit
e6c4095e78
4
main.go
4
main.go
|
@ -29,6 +29,10 @@ func main() {
|
||||||
|
|
||||||
items = filterEntriesAfter(items, now.With(time.Now()).Monday())
|
items = filterEntriesAfter(items, now.With(time.Now()).Monday())
|
||||||
|
|
||||||
|
outputEntries(items)
|
||||||
|
}
|
||||||
|
|
||||||
|
func outputEntries(items []microsub.Item) {
|
||||||
t, err := template.ParseFiles("templates/weekly.html")
|
t, err := template.ParseFiles("templates/weekly.html")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user