MCPcopy Create free account
hub / github.com/CloudyKit/jet / parseInclude

Method parseInclude

parse.go:463–471  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

461}
462
463func (t *Template) parseInclude() Node {
464 var context Expression
465 name := t.expression("include", "template name")
466 if t.peekNonSpace().typ != itemRightDelim {
467 context = t.expression("include", "context")
468 }
469 t.expectRightDelim("include invocation")
470 return t.newInclude(name.Position(), t.lex.lineNumber(), name, context)
471}
472
473func (t *Template) parseReturn() Node {
474 value := t.expression("return", "value")

Callers 1

actionMethod · 0.95

Calls 6

expressionMethod · 0.95
peekNonSpaceMethod · 0.95
expectRightDelimMethod · 0.95
newIncludeMethod · 0.95
lineNumberMethod · 0.80
PositionMethod · 0.65

Tested by

no test coverage detected