PHP code example of ninjify / nunjuck
1. Go to this page and download the library: Download ninjify/nunjuck 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/ */
ninjify / nunjuck example snippets
use Ninjify\Nunjuck\Environment;
# Configure Nette\Tester
Environment::setupTester();
# Configure timezone (Europe/Prague by default)
Environment::setupTimezone();
# Configure many constants
Environment::setupVariables();
# Fill global variables
Environment::setupGlobalVariables();
# Register robot loader
Environment::setupRobotLoader();
Environment::setupRobotLoader(function($loader){});
use Ninjify\Nunjuck\Notes;
Notes::add('My note');
# ['My note']
$notes = Notes::fetch();
Notes::clear();