Source File
context.go
Belonging Package
html/template
package template
import (
)
if .state == stateText {
return
}
:= + "$htmltemplate_" + .state.String()
if .delim != delimNone {
+= "_" + .delim.String()
}
if .urlPart != urlPartNone {
+= "_" + .urlPart.String()
}
if .jsCtx != jsCtxRegexp {
+= "_" + .jsCtx.String()
}
if .attr != attrNone {
+= "_" + .attr.String()
}
if .element != elementNone {
+= "_" + .element.String()
}
return
}
func ( state) bool {
switch {
case stateHTMLCmt, stateJSBlockCmt, stateJSLineCmt, stateCSSBlockCmt, stateCSSLineCmt:
return true
}
return false
}
func ( state) bool {
switch {
case stateTag, stateAttrName, stateAfterName, stateBeforeValue, stateAttr:
return true
}
return false
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |