PHP Classes

File: examples/testidentation.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   examples/testidentation.php   Download  
File: examples/testidentation.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/testidentation.php
Date: 4 years ago
Size: 486 bytes
 

Contents

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


use eftec\bladeone\BladeOne;

include
"../lib/BladeOne.php";
echo
"<hr>";

$blade=new BladeOne(null,null,BladeOne::MODE_DEBUG);
$blade->setOptimize(false); // the result is not optimized (it will not remove tabs of multiple spaces)
$blade->setIsCompiled(false); // the result is not compiled on a file.


try {
    echo
$blade->run("Test.identation",[]);
} catch (
Exception $e) {
    echo
$e->getMessage();
}