MCPcopy Index your code
hub / github.com/writefreely/writefreely / showUserPage

Function showUserPage

templates.go:52–60  ·  view source on GitHub ↗
(w http.ResponseWriter, name string, obj interface{})

Source from the content-addressed store, hash-verified

50)
51
52func showUserPage(w http.ResponseWriter, name string, obj interface{}) {
53 if obj == nil {
54 log.Error("showUserPage: data is nil!")
55 return
56 }
57 if err := userPages[filepath.Join("user", name+".tmpl")].ExecuteTemplate(w, name, obj); err != nil {
58 log.Error("Error parsing %s: %v", name, err)
59 }
60}
61
62func initTemplate(parentDir, name string) {
63 if debugging {

Callers 15

viewExportOptionsFunction · 0.85
viewArticlesFunction · 0.85
viewCollectionsFunction · 0.85
viewEditCollectionFunction · 0.85
viewStatsFunction · 0.85
handleViewSubscribersFunction · 0.85
viewSettingsFunction · 0.85
handleViewUserInvitesFunction · 0.85
handleViewInviteFunction · 0.85
handleViewAdminDashFunction · 0.85
handleViewAdminMonitorFunction · 0.85
handleViewAdminSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected