sempare / sempare-delphi-template-engine

Sempare Template (scripting) Engine for Delphi allows for flexible dynamic text generation. It can be used for generating email, html, reports, source code, xml, configuration, etc.
Apache License 2.0
144 stars 18 forks source link

Add singleton support #165

Closed darnocian closed 3 months ago

darnocian commented 11 months ago
{{ template "addhtmx"; singleton }}
<script src="https://unpkg.com/htmx.org@1.9.8"></script>
{{ end }}

{{ include('addhtmx') }} 
{{ include('addhtmx') }}  

As a result, the include is done only once