Skip to content

Commit

Permalink
- 3.0
Browse files Browse the repository at this point in the history
- Updated gitattributes
- Added development files
  • Loading branch information
Machy8 committed Aug 20, 2017
1 parent a41407e commit 85d2e79
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
tests/ export-ignore
docker-compose.yml export-ignore
Dockerfile export-ignore
index.php export-ignore
input.html export-ignore
output.html export-ignore
*.sh eol=lf
17 changes: 17 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

require_once "vendor/autoload.php";

use Tracy\Debugger;

Debugger::$strictMode = TRUE;
Debugger::enable(DEBUGGER::DEVELOPMENT);

$macdom = new Macdom\Engine;
$macdomPanel = new Macdom\Bridges\MacdomTracy\MacdomPanel;
$macdomPanel->setMacdom($macdom);

$compiled = $macdom->compile(file_get_contents('input.html'));
file_put_contents('output.html', $compiled);

echo $compiled;
1 change: 1 addition & 0 deletions input.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1 Hello World!
3 changes: 3 additions & 0 deletions output.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1>
Hello World!
</h1>

0 comments on commit 85d2e79

Please sign in to comment.