mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
@@ -25,7 +25,7 @@ func init() {
|
||||
ctx := New(d)
|
||||
|
||||
examples := [][2]string{
|
||||
{`{{ range (readDir ".") }}{{ .Name }}{{ end }}`, `README.txt`},
|
||||
{`{{ range (readDir ".") }}{{ .Name }}{{ end }}`, "README.txt"},
|
||||
{`{{ readFile "README.txt" }}`, `Hugo Rocks!`},
|
||||
}
|
||||
|
||||
|
@@ -35,9 +35,6 @@ type Namespace struct {
|
||||
deps *deps.Deps
|
||||
}
|
||||
|
||||
// Namespace returns a pointer to the current namespace instance.
|
||||
func (ns *Namespace) Namespace() *Namespace { return ns }
|
||||
|
||||
// Getenv retrieves the value of the environment variable named by the key.
|
||||
// It returns the value, which will be empty if the variable is not present.
|
||||
func (ns *Namespace) Getenv(key interface{}) (string, error) {
|
||||
|
Reference in New Issue
Block a user