{{!
    This file is part of Moodle - https://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template file/version

    Meta-data version.php file.

    Context variables required for this template:
    * component
    * copyright
    * release
    * requires
    * maturity
    * has_dependencies
    * dependencies
    * dependencies.plugin
    * dependencies.version

    Example context (json):
    {
        "component": "local_test",
        "copyright": "2021 David Mudrák <david@moodle.com>",
        "release": "0.1.0",
        "version": "2021031301",
        "requires": "2020061500",
        "maturity": "MATURITY_STABLE",
        "has_dependencies": false
    }
}}
{{< common/boilerplate_php }}
{{$ description }}Plugin version and other meta-data are defined here.{{/ description }}
{{$ package }}{{ component }}{{/ package }}
{{$ copyright }}{{{ copyright }}}{{/ copyright }}
{{/ common/boilerplate_php }}

$plugin->component = '{{ component }}';
{{# release }}
$plugin->release = '{{ . }}';
{{/ release }}
$plugin->version = {{ version }};
{{# requires }}
$plugin->requires = {{ . }};
{{/ requires }}
{{# maturity }}
$plugin->maturity = {{ . }};
{{/ maturity }}
{{# has_dependencies }}
$plugin->dependencies = [
{{# dependencies }}
    '{{ .plugin }}' => {{ .version }},
{{/ dependencies }}
];
{{/ has_dependencies }}
