Pinterest-like app for saving images, videos, quotes, and embeds. Features: - Go backend with PostgreSQL, SSR templates - Console-based admin auth (login/logout via browser console) - Item types: images, videos (ffmpeg transcoding), quotes, embeds - Media stored as BLOBs in PostgreSQL - OpenGraph metadata extraction for links - Embed detection for YouTube, Vimeo, Twitter/X - Masonry grid layout, item detail pages - Tag system with filtering - Refresh metadata endpoint with change warnings - Replace media endpoint for updating item images/videos
17 lines
261 B
Go
17 lines
261 B
Go
package handlers
|
|
|
|
import (
|
|
"html/template"
|
|
|
|
"lookbook/internal/static"
|
|
)
|
|
|
|
var TemplateFuncs = template.FuncMap{
|
|
"staticURL": static.VersionedPath,
|
|
"safeHTML": func(s *string) template.HTML {
|
|
if s == nil {
|
|
return ""
|
|
}
|
|
return template.HTML(*s)
|
|
},
|
|
}
|