BumbleDocGen / Technical description of the project / Renderer / How to create documentation templates? / Templates dynamic blocks
There are several ways to create dynamic blocks in templates.
- First of all, these are custom twig functions and filters. You can use the built-in functions and filters or add your own, so you can implement any logic for generating dynamically changing content.
{{ printEntityCollectionAsList(phpClassEntityCollection.filterByInterfaces(['\\BumbleDocGen\\Core\\Parser\\SourceLocator\\SourceLocatorInterface']).getOnlyInstantiable()) }}
- The second way is to output data from variables directly to the template. For example, you can display a list of classes or methods of documented code according to certain rules.
{% for entity in phpClassEntityCollection.filterByInterfaces(['\\BumbleDocGen\\Core\\Parser\\SourceLocator\\SourceLocatorInterface']).getOnlyInstantiable() %}
* {{ entity.getName() }}
{% endfor %}
Last page committer: fshcherbanich <[email protected]>
Last modified date: Sat Sep 2 21:01:47 2023 +0300
Page content update date: Mon Nov 06 2023
Made with Bumble Documentation Generator