There’s a long story behind this and in the coming days, all will be explained.
But I now present to you the code of a page using the ego framework, when we get it all finished properly it will be awesome:
The internet before ego:
<html>
<head>
<title>The ugly page</title>
</head>
<body>
<h1>The Ugly Page</h1><br />
<div id="bla">This page sucks, loads links normally, and doesn't come out of the browser looking good. Why would a market-demographic like a teenager or somebody want to look at this page? Unless your a coder and it's full of awesome content, you don't.</div>
</body>
</html>
The internet after ego:
<?php
include('ego_framework.php');
$ego = new ego();
$ego->__init();
?>
<html>
<head>
<title>The new hot page</title>
</head>
<body>
<?php echo $ego->WriteHeadBar(); ?>
<h1>The HOT Page</h1><br />
<div id="bla">This page doesn't suck because it used the 'Ego' framework, it looks nice and is auto stylized with the 'ego' template. And don't worry about CSS classes ego's JS system will take care of that.<a href="two.php" type="ajax">Click here</a></div>
<?php echo $ego->WriteFooterBar(); ?>
<div id="extra-footer">And here ego's JS system will automatically stylize this bit. For copyrights and shit</div>
</body>
</html>
two.php:
<div id="bla">This content will be dynamically loaded and replaced! All with a simple link</div>
It’s awesome, make pages look good and enter a network of sites. And use OpenLogin’s existing framework(<< secret) at the same time. Cool.
More news on this and it’s big parent project in a couple days. Expect blog about sushi later.