package templates

import "time"

// TimeFragment renders the canonical /demo/time response: a single <span>
// containing an ISO-8601 UTC timestamp. templ auto-escapes the interpolated
// value (T-01-13 defense-in-depth) — never use templ.Raw on user input.
templ TimeFragment(t time.Time) {
	<span class="text-slate-900">{ t.UTC().Format(time.RFC3339) }</span>
}
