Added some notes on functions I may no longer need.
This commit is contained in:
@@ -1,11 +1,18 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"context"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
func userIDFromContext(ctx context.Context) (string, bool) {
|
||||
id, ok := ctx.Value(userIDKey).(string)
|
||||
return id, ok
|
||||
}
|
||||
|
||||
// TODO: Not sure this is needed right now
|
||||
// Renders a full page by combining the base template with a page template
|
||||
// Parsed together so the page can define blocks needed for base template
|
||||
func render(w http.ResponseWriter, _ *http.Request, page string, data any) {
|
||||
|
||||
Reference in New Issue
Block a user