Skip to content
This repository was archived by the owner on Apr 24, 2020. It is now read-only.

lennartfranke/HTML-Abstraction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML-Abstraction

Requires PHP 5.6!

Simple 'Hello World' example:

<?php
namespace Wit\Html;

include( 'Element.php' );

echo new Element("h1", "Hello World!");
echo new Element("div", [
	new Element("span", function() {
		return new Element("strong", "This is a");
	}),
	(new Element("span", function($str) {
		return $str;
	}))->bind(" simple HTML Abstraction!")->attribute("style", "color: red;")
]);

?>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages