vite-plugin-php 3.0.0-beta.4 → 3.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +0 -0
- package/README.md +4 -5
- package/dist/index.cjs +633 -589
- package/dist/index.d.cts +0 -0
- package/dist/index.d.mts +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.mjs +634 -590
- package/dist/router.php +21 -14
- package/package.json +6 -2
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -55,10 +55,10 @@ Plugin now fully utilizes the Vite pipeline to load, transform and HTML-transfor
|
|
|
55
55
|
</head>
|
|
56
56
|
<body>
|
|
57
57
|
<div id="root">
|
|
58
|
-
<?=
|
|
58
|
+
<?= 'Render some text with PHP!' ?>
|
|
59
59
|
</div>
|
|
60
60
|
|
|
61
|
-
<?php if(isset($_GET['show_hello'])): ?>
|
|
61
|
+
<?php if (isset($_GET['show_hello'])): ?>
|
|
62
62
|
Hello world!
|
|
63
63
|
<?php endif; ?>
|
|
64
64
|
|
|
@@ -296,11 +296,10 @@ E.g. you have a page with some variables:
|
|
|
296
296
|
|
|
297
297
|
```php
|
|
298
298
|
<?php
|
|
299
|
-
$var = 'foo';
|
|
300
|
-
?>
|
|
299
|
+
$var = 'foo'; ?>
|
|
301
300
|
|
|
302
301
|
<script type="module">
|
|
303
|
-
console.log('
|
|
302
|
+
console.log('<?= $var ?>');
|
|
304
303
|
</script>
|
|
305
304
|
```
|
|
306
305
|
|