webchemistry / embed-macro
There is no license information available for the latest version (v1.0.1) of this package.
Embed latte macro
v1.0.1
2018-11-30 10:29 UTC
Requires
- php: >= 7.2
Requires (Dev)
- latte/latte: ^2.4
- nette/di: ^2.4
This package is auto-updated.
Last update: 2024-12-16 22:18:28 UTC
README
extensions: - WebChemistry\Macros\DI\EmbedMacroExtension
Usage
{define panel} <div class="panel"> <div class="title" n:ifset="$title">{$title}</div> <div class="body"> {$_content|noescape} </div> </div> {/define}
{embed panel title => 'Bar'}
Html content with component:
{control foo}
{/embed}