Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestRedefineNestedByTemplateAfterExecution (0.36 sec)

  1. src/html/template/template_test.go

    	c.mustParse(c.root, `{{define "X"}}foo{{end}}`)
    	c.mustExecute(c.lookup("X"), nil, "foo")
    	c.mustNotParse(c.root, `{{define "X"}}bar{{end}}`)
    	c.mustExecute(c.lookup("X"), nil, "foo")
    }
    
    func TestRedefineNestedByTemplateAfterExecution(t *testing.T) {
    	c := newTestCase(t)
    	c.mustParse(c.root, `{{define "X"}}foo{{end}}`)
    	c.mustExecute(c.lookup("X"), nil, "foo")
    	c.mustNotParse(c.lookup("X"), `bar`)
    	c.mustExecute(c.lookup("X"), nil, "foo")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 6.2K bytes
    - Viewed (0)
Back to top