1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 13:16:45 +02:00

feat(shortcodes): add missed settings

This commit is contained in:
Awilum
2022-05-26 20:18:56 +03:00
parent f52da91860
commit b3eaac60aa
3 changed files with 6 additions and 2 deletions

View File

@@ -605,6 +605,8 @@ parsers:
registry:
enabled: true
path: "/src/flextype/core/Parsers/Shortcodes/RegistryShortcode.php"
get:
enabled: true
url:
enabled: true
path: "/src/flextype/core/Parsers/Shortcodes/UrlShortcode.php"
@@ -634,7 +636,7 @@ parsers:
calc:
enabled: true
path: "/src/flextype/core/Parsers/Shortcodes/CalcShortcode.php"
# CORS
#
# CORS (Cross-origin resource sharing) allows JavaScript web apps to make HTTP requests to other domains.

View File

@@ -586,6 +586,8 @@ parsers:
registry:
enabled: true
path: "/src/flextype/core/Parsers/Shortcodes/RegistryShortcode.php"
get:
enabled: true
strings:
enabled: true
path: "/src/flextype/core/Parsers/Shortcodes/StringsShortcode.php"

View File

@@ -2,7 +2,7 @@
declare(strict_types=1);
test('[registry] shortcode', function () {
test('registry shortcode', function () {
expect(strings(parsers()->shortcodes()->parse("(registry get:'flextype.manifest')"))->isJson())->toBeTrue();
expect(parsers()->shortcodes()->parse("(registry get:'flextype.manifest.name')"))->toBe('Flextype');
expect(parsers()->shortcodes()->parse("(registry get:'flextype.manifest.foo' default:'Default')"))->toBe('Default');