
 {{!
    This file is part of Moodle - http://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 tiny_widgethub/sandbox

    Logic of the sandbox executor.

    Classes required for JS:
    * none

    Data attributes required for JS:
    * none

    Context variables required for this template:
    * wwwroot: The root URL of the Moodle site
    * jsrev: The revision number of the JavaScript files
    * origin: The origin of the Moodle site

    Example context (json):
    {
        "wwwroot": "https://moodle.example.com",
        "origin": "https://moodle.example.com",
        "jsrev": "1234567890"
    }
}}
<!DOCTYPE html>
<html lang="en">
<head>
    <title>WidgetHub Render Sandbox</title>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Security-Policy" content="
    default-src 'none';
    script-src 'self' {{{origin}}} 'unsafe-eval' blob:;
    frame-src blob:;
    worker-src 'self' blob:;
    style-src 'self' 'unsafe-inline';
    connect-src 'none';
    img-src 'none';
    font-src 'none';
    media-src 'none';
    object-src 'none';
    base-uri 'none';
    form-action 'none';
    ">
    <script src="{{{wwwroot}}}/lib/editor/tiny/plugins/widgethub/assets.php/js/{{jsrev}}/render_sandbox"></script>
</head>
 <body>
</body>
</html>
