Handle browse input
This commit is contained in:
parent
68fef90684
commit
aa0c2a283f
@ -119,7 +119,6 @@ func (en *Engine) Exec(input []byte, ctx context.Context) (bool, error) {
|
|||||||
// - the template for the given node point is note available for retrieval using the resource.Resource implementer.
|
// - the template for the given node point is note available for retrieval using the resource.Resource implementer.
|
||||||
// - the supplied writer fails to process the writes.
|
// - the supplied writer fails to process the writes.
|
||||||
func(en *Engine) WriteResult(w io.Writer) error {
|
func(en *Engine) WriteResult(w io.Writer) error {
|
||||||
//location, idx := en.st.Where()
|
|
||||||
r, err := en.vm.Render()
|
r, err := en.vm.Render()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
2
go/testdata/testdata.go
vendored
2
go/testdata/testdata.go
vendored
@ -117,6 +117,8 @@ func long() error {
|
|||||||
b = vm.NewLine(b, vm.MAP, []string{"longdata"}, nil, nil)
|
b = vm.NewLine(b, vm.MAP, []string{"longdata"}, nil, nil)
|
||||||
b = vm.NewLine(b, vm.HALT, nil, nil, nil)
|
b = vm.NewLine(b, vm.HALT, nil, nil, nil)
|
||||||
b = vm.NewLine(b, vm.INCMP, []string{"0", "_"}, nil, nil)
|
b = vm.NewLine(b, vm.INCMP, []string{"0", "_"}, nil, nil)
|
||||||
|
b = vm.NewLine(b, vm.INCMP, []string{"00", ">"}, nil, nil)
|
||||||
|
b = vm.NewLine(b, vm.INCMP, []string{"11", "<"}, nil, nil)
|
||||||
|
|
||||||
tpl := `data
|
tpl := `data
|
||||||
{{.longdata}}`
|
{{.longdata}}`
|
||||||
|
Loading…
Reference in New Issue
Block a user