Welcome to LivingMarkup Documentation¶
LivingMarkup is an PHP implementation of a LHTML parser.
It is a powerful and flexible way to build dynamic web pages.
<?php
use Ouxsoft\LivingMarkup\Factory\ProcessorFactory;
$processor = ProcessorFactory::getInstance();
$processor->addElement([
'xpath' => '//partial',
'class_name' => 'Partial\{name}'
]);
$processor->addRoutine([
'method' => 'onRender',
'execute' => 'RETURN_CALL'
]);
$processor->parseBuffer();
?>
<html lang="en">
<partial name="Alert" type="success">
This is a success alert.
</partial>
</html>
Installation¶
Get an instance of LivingMarkup up and running in less than 5 minutes.
LivingMarkup is available on Packagist.
Install with Composer:
composer require ouxsoft/livingmarkup
That’s it. You’re done! Please take the rest of the time to read our docs.
Contribute¶
- Issue Tracker: https://github.com/ouxsoft/LivingMarkup/issues
- Source Code: https://github.com/ouxsoft/LivingMarkup