func (f *FileVar) Read(ctx *Context) ([]byte, error) {
	if f.Path == "" {
		return nil, ErrNoPath
	}
	if f.IsStdin() {
		return ioutil.ReadAll(ctx.Stdin)
	}

	path, err := utils.NormalizePath(f.Path)
	if err != nil {
		return nil, err
	}
	return ioutil.ReadFile(ctx.AbsPath(path))
}
// Read returns the contents of the file.
Read returns the contents of the file.
// Read returns the contents of the file .
func (f *FileVar) Read(ctx *Context) ([]byte, error) {
	if f.Path == "" {
		return nil, ErrNoPath
	}
	if f.IsStdin() {
		return ioutil.ReadAll(ctx.Stdin)
	}
	path, err := utils.NormalizePath(f.Path)
	if err != nil {
		return nil, err
	}
	return ioutil.ReadFile(ctx.AbsPath(path))
}
func ( f * FileVar ) Read ( ctx * Context ) ( [ ] byte , error ) { if f . Path == " " { return nil , ErrNoPath } if f . IsStdin ( ) { return ioutil . ReadAll ( ctx . Stdin ) } path , err := utils . NormalizePath ( f . Path ) if err != nil { return nil , err } return ioutil . ReadFile ( ctx . AbsPath ( path ) ) }
Read returns the contents of the file.
Read returns the contents of the file .