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

This package is auto-updated.

Last update: 2024-10-16 21:58:16 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}