MediaWiki REL1_40
|
Parser for Vue single file components (.vue files). More...
Public Member Functions | |
parse (string $html, array $options=[]) | |
Parse a Vue single file component, and extract the script, template and style parts. | |
Parser for Vue single file components (.vue files).
See parse() for usage.
Definition at line 46 of file VueComponentParser.php.
MediaWiki\ResourceLoader\VueComponentParser::parse | ( | string | $html, |
array | $options = [] ) |
Parse a Vue single file component, and extract the script, template and style parts.
Returns an associative array with the following keys:
The following options can be passed in the $options parameter:
string | $html | HTML with <script>, <template> and <style> tags at the top level |
array | $options | Associative array of options |
Exception | If the input is invalid |
Definition at line 65 of file VueComponentParser.php.