@newlogic-digital/core 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- package/latte/CodeFilter.php +16 -0
- package/package.json +2 -1
@@ -0,0 +1,16 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
namespace App\Latte;
|
4
|
+
|
5
|
+
class CodeFilter
|
6
|
+
{
|
7
|
+
|
8
|
+
public static function execute($value, $type = null, $mirror = null): \Latte\Runtime\Html
|
9
|
+
{
|
10
|
+
if ($mirror) {
|
11
|
+
$mirror = $value;
|
12
|
+
}
|
13
|
+
|
14
|
+
return new \Latte\Runtime\Html("$mirror<pre><code class='language-{$type}'>$value</code></pre>");
|
15
|
+
}
|
16
|
+
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@newlogic-digital/core",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.5",
|
5
5
|
"main": "index.js",
|
6
6
|
"author": "New Logic Studio s.r.o.",
|
7
7
|
"description": "Set of tools that can be used to create modern web applications",
|
@@ -22,6 +22,7 @@
|
|
22
22
|
"vituum": "^0.0.27"
|
23
23
|
},
|
24
24
|
"files": [
|
25
|
+
"latte",
|
25
26
|
"index.js",
|
26
27
|
"prism.js"
|
27
28
|
],
|