Restore local live reloading of templates.
This commit is contained in:
parent
29fbadbadd
commit
5f877c3d38
5 changed files with 63 additions and 21 deletions
17
templates/templates_test.go
Normal file
17
templates/templates_test.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package templates
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestGet(t *testing.T) {
|
||||
_, err := Get().Open("pages/home.gohtml")
|
||||
require.NoError(t, err)
|
||||
}
|
||||
|
||||
func TestGetOS(t *testing.T) {
|
||||
_, err := GetOS().Open("pages/home.gohtml")
|
||||
require.NoError(t, err)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue