Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (40 sloc) 1.002 kb
<?php
error_reporting( E_ALL | E_STRICT );
require_once( 'xdebug-frontend.php' );
/**
* Inclusion de tamsuft.
*/
require_once( 'tamsuft/start.php' );
/**
* Lancement de tamsuft.
*/
tamsuft( 'templates/index.tpl' )
->compile_to('ram://')
->generate_to('ram://')
->echo;
/*
tamsuft( 'templates/index.tpl', array( )
->compile_to( 'compiled/index.php' )
->generate_to( 'generated/index.html' )
->go
->compile_to( 'compiled/index.php' )
->generate_to( 'generated/index.html' )
->go;
tamsuft( 'templates/index.tpl') )
->compile_to( function($template){return $template.'.php';} )
->life(3600)
->echo;
tamsuft()
->preg_work( '/templates\/.*\.tpl/', '/compiled\/\1\.php/', '/generated\/\1\.php/', array() )
->go;
tamsuft()
->compile_to( 'ram://' )
->generate_to( 'db://' );
2posibilités:
source::include() existe, besoin alors de géré les error_handler()
OUI
source_memory::get_address() retourne l'addresse d'un fichier php, toujours
même pour source_database
NON
*/
?>
Jump to Line
Something went wrong with that request. Please try again.