PHP code example of daun / statamic-latte
1. Go to this page and download the library: Download daun/statamic-latte 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/ */
daun / statamic-latte example snippets
latte
<ul n:inner-foreach="$songs as $song">
<li>{$song} (Next: {$iterator->nextValue})</li>
</ul>
latte
{cache for: '10 minutes'}
{foreach $stocks as $stock}
{$stock->fetchPrice()}
{/foreach}
{/cache}