added logic to view templates as html form for request /template/[id] or /template/[slug]