raw() function is a coined function that uses the
internal file_get_contents() php function to return the
direct content of a rex template file. The only major difference is that
only rex template files from within the WIN_REX, that is,
window rex directory are being resolved.
The boy is {{ $age }} years today
raw() function as shown below:
<?php
namespace spoova/mi/windows/Routes;
use window;
class Home extends Window {
function __construct() {
//fetch template content
$rex = raw('home');
//The boy is {{ $age }} years today
echo ( $rex );
}
}
<?php
namespace spoova/mi/windows/Routes;
use window;
class Home extends Window {
function __construct() {
// windows/Rex/home/user.rex.php
$raw = raw('home.user');
//dump template content
vdump( $raw );
}
}