-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be useful to be able to define sub-templates within a template that is compiled by tmpl
{{ define "greeting" }}
Hello world!
{{ end }}
<p>{{template "greeting"}}</p>Currently this is not possible because tmpl wraps the template text in its own define tag internally. Instead, these define directives should be extracted and parsed separately, then merged with the main parse tree.
It would also be useful to be able to query the template targets that are available within a compiled template.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request