This repository has been archived by the owner on Jun 20, 2019. It is now read-only.
1.1.1
Merged pull request to add html('fragment')
which creates an empty container.
For instance:
$container = html('fragment');
$container->addChild(html('comment', 'The image'));
$container->addChild(html('img src="home.jpg"'));
$container->addChild(html('comment', 'End of the image'));
echo $container;
Generates:
<!-- The image -->
<img src="home.jpg" />
<!-- End of the image -->