1. Go to this page and download the library: Download marihachi/tale-jade 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/ */
marihachi / tale-jade example snippets
use Tale\Jade;
//Include the vendor/autoload.php if you're using composer!
$renderer = new Jade\Renderer([
'cachePath' => '/your/absolute/cache/path'
]);
$renderer = new Jade\Renderer([
'lifeTime' => 3600 //Will cache the file for 3600 seconds (one hour)
]);
$renderer = new Jade\Renderer([
'pretty' => true
]);
//Either with
$renderer = new Jade\Renderer([
'paths' => [__DIR__.'/views']
]);
//or with
$renderer->addPath(__DIR__.'/views');
echo $renderer->render('index', [
'title' => 'Jade is awesome!',
'content' => 'Oh yeah, it is.'
]);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.