PHP code example of aleskafka / component-macro
1. Go to this page and download the library: Download aleskafka/component-macro library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aleskafka / component-macro example snippets
$latte = new Latte\Engine;
ComponentMacro::install($latte, __DIR__ . '/components');
__DIR__ . '/components/header.latte
<Header ..$this n:component />