#Macdom
- HTML preprocessor
- For more information see WIKI
- Try it on CODEPEN (JavaScript version is always behind the php version so it may contain bugs and errors that have already been fixed in the PHP version)
##Requirements
- php 5.3+
- If you are using Nette Framework - v2.3+
##Installation 1 - Download the Macdom using composer:
composer require machy8/macdom
2 - Usage:
Normal:
$macdom = new Machy8\Macdom\Loaders\Loader;
$compiled = $macdom->compile($content);
Nette framework:
Place the code bellow into your base presenter.
protected function createTemplate()
{
$template = parent::createTemplate();
$template->getLatte()->setLoader(new \Machy8\Macdom\Loaders\LoaderLatte($this));
return $template;
}