Skip to content

Commit 444df30

Browse files
committed
Add index.php into the playground
1 parent f98095c commit 444df30

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ vendor/
33
/webtemp/
44
/tests/nette-tester/webtemp/actual/
55
/tests/nette-tester/output/
6-
index.php
76
composer.lock
87
docker-compose.yml

playground/index.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
</head>
8+
<body>
9+
<?php
10+
require_once '../vendor/autoload.php';
11+
// 1. Install dependencies
12+
// 2. Dump autoload
13+
14+
$outputDir = './webtemp';
15+
$documentRoot = '/';
16+
$publicPathPrefix = '/playground'; // Optional, can be a domain https://static.domain.com
17+
$webloader = new \WebLoader\Engine($outputDir, $documentRoot, $publicPathPrefix);
18+
19+
$webloader->createFilesCollectionsFromConfig('./bundles.neon');
20+
echo $webloader->getFilesCollectionRender()->css('my-bundle');
21+
22+
?>
23+
</body>
24+
</html>

0 commit comments

Comments
 (0)