summaryrefslogtreecommitdiffhomepage
path: root/http/templates.go
blob: de5d3ddd9ba97102ee967f8fef2fc12f95fe02d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
package http

import "toast.cafe/x/brpaste/v2/template"

var (
	// CodeTemplate is the function to be used as the template for the code viewer
	// overwrite it before calling GenHandler
	CodeTemplate = template.Code
	// IndexTemplate is the function to be used as the template for the index page
	// overwrite it before calling GenHandler
	IndexTemplate = template.Index
)