1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-19 11:21:30 +02:00

Flextype Core: Add ability to work with different types of content #212 #186

- Parser.php refactoring
This commit is contained in:
Awilum
2019-08-17 23:44:37 +03:00
parent 2736a317de
commit d6f37a6e41

View File

@@ -16,7 +16,7 @@ class Parser
*
* @var array
*/
public static $default_driver = 'frontmatter';
public static $default_driver = 'frontmatter';
/**
* Drivers
@@ -25,8 +25,8 @@ class Parser
*/
public static $drivers = [
'frontmatter' => [
'name' => 'frontmatter',
'ext' => 'md',
'name' => 'frontmatter',
'ext' => 'md',
],
'json' => [
'name' => 'json',
@@ -34,7 +34,7 @@ class Parser
], 'yaml' => [
'name' => 'yaml',
'ext' => 'yaml',
]
],
];
public static function encode($input, string $driver) : string