Webfan UI - Concept 4

Webfan is now testing the new successor of an UI concept implementing components that has been around in the stack since years.

It is based in the following components or forks of them:

 

 

Example Code-Snippet:

First register shut down function to output the HTML-Document finally: 

$ShutdownTasks = \frdlweb\Thread\ShutdownTasks::mutex();
$ShutdownTasks(function($ItemUpdater){
    $str = @$ItemUpdater->context()->html()->compileScope( Config::get('context.scope') );
 $str = str_replace(['</head>'], ['</head><body>'], $str).'</body>';
 echo '<!DOCTYPE html>
<html>'.$str.'</html>';
}, $ItemUpdater);

Then write HTML: 

$ItemUpdater::context()->html()->write('
 <component src="file:'.__DIR__.'/template-main.php" subject="'.getenv('WEBFINGER_HANDLE').'" description="'.$ItemUpdater->getItem()->getData()['description'].'" />
');

connect with ❤️Webfan | connect with Google