-
Notifications
You must be signed in to change notification settings - Fork 0
Introduction
Tsama PHP, a public domain, compact PHP framework that can publish in HTML5 and CSS3
Tsama PHP allows the developer to create HTML5 websites while allowing for node manipulation on server side.
The following is an example of the node structure manipulation in php.
require_once("globals.php");
require_once("core".DS."tsama.php");
$text = 'Hello World!';
$compress_output = TRUE;
$html = new TsamaNode('html');
$head = $html->AddChild('head');
$body = $html->AddChild('body');
$title = $head->AddChild('title');
$title->SetValue($text);
$h1 = $body->AddChild('h1');
$h1->SetValue($text);
echo '';
echo HTML5Parser::_out($html,null,$compress_output);
?>
The following is the expected output of the above example's php code.
`
<title>Hello World!</title>`Introduction
Installation and Configuration
Predefined Constants and Globals
Creating a Layout
Creating a Theme
Creating a Service