PHP Classes

File: examples/compilefile.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   examples/compilefile.php   Download  
File: examples/compilefile.php
Role: Example script
Content type: text/plain
Description: Example script
Class: BladeOne
Standalone template engine that compiles into PHP
Author: By
Last change: Update of examples/compilefile.php
Date: 2 years ago
Size: 501 bytes


Class file image Download
 * Copyright (c) 2016 Jorge Patricio Castro Castillo MIT License.

use eftec\bladeone\BladeOne;


$views = __DIR__ . '/views';
$compiledFolder = __DIR__ . '/compiled';
$blade=new BladeOne($views,$compiledFolder,BladeOne::MODE_DEBUG);


echo $blade->run("Test.hello"
    ,["name"=>"hola mundo"