()
| 461 | } |
| 462 | |
| 463 | func (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 | |
| 473 | func (t *Template) parseReturn() Node { |
| 474 | value := t.expression("return", "value") |
no test coverage detected