mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-28 11:12:45 +00:00
It started with wanting to move templates in template bundles and the rest followed. I did my best to start grouping related functions together, but there are some that I missed. There is also the method Urlize that seems to be a special function used in both worlds. I'll need to revisit this method.
12 lines
192 B
Go
12 lines
192 B
Go
package bundle
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestNothing(t *testing.T) {
|
|
b := NewTemplate()
|
|
if b.Lookup("alias") == nil {
|
|
t.Fatalf("Expecting alias to be initialized with new bundle")
|
|
}
|
|
}
|