func ShowTrashTask(w http.ResponseWriter, r *http.Request, parm httprouter.Params) { context := viewmodels.GetTasks("trashed") //false when you want deleted notes deletedTemplate.Execute(w, context) }
func ShowCompleteTasks(w http.ResponseWriter, r *http.Request, parm httprouter.Params) { context := viewmodels.GetTasks("complete") //false when you want finished notes completedTemplate.Execute(w, context) }
func ShowAllTasks(w http.ResponseWriter, r *http.Request, parm httprouter.Params) { context := viewmodels.GetTasks("pending") //true when you want non deleted notes homeTemplate.Execute(w, context) }