Compare commits

..

2 Commits

Author SHA1 Message Date
Chris Sexton 4965bf7dfa taskpaper: rename file to proper extension 2020-10-26 06:39:18 -04:00
Chris Sexton a45af2a489 taskpaper: fix syntax format 2020-10-26 06:38:40 -04:00
3 changed files with 15 additions and 15 deletions

View File

@ -21,7 +21,7 @@ var tplMap = map[string]string{
"assignments": "assignments.adoc.tpl",
"schedule": "schedule.adoc.tpl",
"syllabus": "syllabus.adoc.tpl",
"course": "course.task.tpl",
"course": "course.taskpaper.tpl",
}
type DayMap map[int]time.Time
@ -145,7 +145,7 @@ func main() {
}
func writeTaskPaper(c Config) error {
f, err := os.Create("course.task")
f, err := os.Create("course.taskpaper")
defer f.Close()
if err != nil {
return err

View File

@ -1,13 +0,0 @@
- {{.Project}} @parallel(true) @autodone(false) @context(Place : IUS) @tags(Place : IUS) @defer(2019-12-20 00:00)
- Assignments @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
{{- range $key, $value := .Assignments}}
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @due({{getDate $value.Assigned}} {{dueTime}})
{{- end}}
- Grading @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
{{- range $key, $value := .Assignments}}
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @defer({{getDate $value.Due}} {{dueTime}})
{{- end}}
- Lectures @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
{{- range $key, $value := .Days}}
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @due({{getDate $value.Num}} {{dueTime}})
{{- end}}

13
tpl/course.taskpaper.tpl Normal file
View File

@ -0,0 +1,13 @@
- {{.Project}} @parallel(true) @autodone(false) @context(Place : IUS) @tags(Place : IUS) @defer(2019-12-20 00:00)
Assignments: @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
{{- range $key, $value := .Assignments}}
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @due({{getDate $value.Assigned}} {{dueTime}})
{{- end}}
Grading: @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
{{- range $key, $value := .Assignments}}
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @defer({{getDate $value.Due}} {{dueTime}})
{{- end}}
Lectures: @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
{{- range $key, $value := .Days}}
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @due({{getDate $value.Num}} {{dueTime}})
{{- end}}