...

Source file src/github.com/noirbizarre/gonja/loaders/loader.go

Documentation: github.com/noirbizarre/gonja/loaders

     1  package loaders
     2  
     3  import (
     4  	"io"
     5  )
     6  
     7  // TemplateLoader allows to implement a virtual file system.
     8  type Loader interface {
     9  	// Abs calculates the path to a given template. Whenever a path must be resolved
    10  	// due to an import from another template, the base equals the parent template's path.
    11  	// Abs(base, name string) string
    12  
    13  	// Get returns an io.Reader where the template's content can be read from.
    14  	Get(path string) (io.Reader, error)
    15  }
    16  

View as plain text