Compare commits
2 Commits
da570026b3
...
4965bf7dfa
Author | SHA1 | Date |
---|---|---|
Chris Sexton | 4965bf7dfa | |
Chris Sexton | a45af2a489 |
|
@ -21,7 +21,7 @@ var tplMap = map[string]string{
|
||||||
"assignments": "assignments.adoc.tpl",
|
"assignments": "assignments.adoc.tpl",
|
||||||
"schedule": "schedule.adoc.tpl",
|
"schedule": "schedule.adoc.tpl",
|
||||||
"syllabus": "syllabus.adoc.tpl",
|
"syllabus": "syllabus.adoc.tpl",
|
||||||
"course": "course.task.tpl",
|
"course": "course.taskpaper.tpl",
|
||||||
}
|
}
|
||||||
|
|
||||||
type DayMap map[int]time.Time
|
type DayMap map[int]time.Time
|
||||||
|
@ -145,7 +145,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func writeTaskPaper(c Config) error {
|
func writeTaskPaper(c Config) error {
|
||||||
f, err := os.Create("course.task")
|
f, err := os.Create("course.taskpaper")
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -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}}
|
|
|
@ -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}}
|
Loading…
Reference in New Issue