Skip to content

Commit

Permalink
Add index.php into the playground
Browse files Browse the repository at this point in the history
  • Loading branch information
Machy8 committed Aug 13, 2020
1 parent f98095c commit 444df30
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ vendor/
/webtemp/
/tests/nette-tester/webtemp/actual/
/tests/nette-tester/output/
index.php
composer.lock
docker-compose.yml
24 changes: 24 additions & 0 deletions playground/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
require_once '../vendor/autoload.php';
// 1. Install dependencies
// 2. Dump autoload

$outputDir = './webtemp';
$documentRoot = '/';
$publicPathPrefix = '/playground'; // Optional, can be a domain https://static.domain.com
$webloader = new \WebLoader\Engine($outputDir, $documentRoot, $publicPathPrefix);

$webloader->createFilesCollectionsFromConfig('./bundles.neon');
echo $webloader->getFilesCollectionRender()->css('my-bundle');

?>
</body>
</html>

0 comments on commit 444df30

Please sign in to comment.