File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ public function __construct(?string $block)
5252 }
5353 }
5454
55+ $ tags = $ node ->getTagsByName ('@template ' );
56+ array_walk ($ tags , fn ($ tag ) => $ this ->tags ['template ' ][] = $ tag ->value );
57+
5558 $ tags = $ node ->getTagsByName ('@var ' );
5659 if ($ tags ) {
5760 $ this ->tags ['var ' ] = current ($ tags )->value ;
Original file line number Diff line number Diff line change 4040 {{ function .doc .summary | markdown_to_html }}
4141 {{ function .doc .description | markdown_to_html }}
4242
43+ {% if function .doc .tags .template is defined %}
44+ <h6 >Templates</h6 >
45+ <div class =" list" >
46+ {% for tag in function .doc .tags .template %}
47+ <code >
48+ {{ tag .name }}
49+ {% if tag .bound is not null %} of {tag.bound}{% endif %}
50+ {% if tag .lowerBound is not null %} super {tag.lowerBound}{% endif %}
51+ {% if tag .default is not null %} = {tag.default}{% endif %}
52+ </code ><br >
53+ {{ tag .description }}{{ loop .last ? ' ' : ' <br>' }}
54+ {% endfor %}
55+ </div >
56+ {% endif %}
57+
4358 {% if function .params %}
4459 <h6 >Parameters</h6 >
4560 <div class =" parameter-list list" >
You can’t perform that action at this time.
0 commit comments