Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for AddParseTree (0.53 sec)

  1. src/text/template/exec_test.go

    	}
    	// Add a non-empty template to check that the error is helpful.
    	tests, err := New("").Parse(testTemplates)
    	if err != nil {
    		t.Fatal(err)
    	}
    	tmpl.AddParseTree("secondary", tests.Tree)
    	err = tmpl.Execute(&b, 0)
    	if err == nil {
    		t.Fatal("expected second error")
    	}
    	got = err.Error()
    	want = `template: empty: "empty" is an incomplete or empty template`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  2. src/html/template/exec_test.go

    	}
    
    	// Add a non-empty template to check that the error is helpful.
    	tmpl = New("empty")
    	tests, err := New("").Parse(testTemplates)
    	if err != nil {
    		t.Fatal(err)
    	}
    	tmpl.AddParseTree("secondary", tests.Tree)
    	err = tmpl.Execute(&b, 0)
    	if err == nil {
    		t.Fatal("expected second error")
    	}
    	got = err.Error()
    	if got != want {
    		t.Errorf("expected error %s got %s", want, got)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"String", Func, 19},
    	},
    	"html": {
    		{"EscapeString", Func, 0},
    		{"UnescapeString", Func, 0},
    	},
    	"html/template": {
    		{"(*Error).Error", Method, 0},
    		{"(*Template).AddParseTree", Method, 0},
    		{"(*Template).Clone", Method, 0},
    		{"(*Template).DefinedTemplates", Method, 6},
    		{"(*Template).Delims", Method, 0},
    		{"(*Template).Execute", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  4. api/go1.txt

    pkg html/template, func ParseGlob(string) (*Template, error)
    pkg html/template, func URLQueryEscaper(...interface{}) string
    pkg html/template, method (*Error) Error() string
    pkg html/template, method (*Template) AddParseTree(string, *parse.Tree) (*Template, error)
    pkg html/template, method (*Template) Clone() (*Template, error)
    pkg html/template, method (*Template) Delims(string, string) *Template
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top