<!DOCTYPE html>
<html class="{{content-for "root-class"}}">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Consul by HashiCorp</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    {{content-for "head"}}
    <link rel="icon" type="image/png" href="{{rootURL}}assets/favicon-32x32.png" sizes="32x32">
    <link rel="icon" type="image/png" href="{{rootURL}}assets/favicon-16x16.png" sizes="16x16">

    <link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
    <link integrity="" rel="stylesheet" href="{{rootURL}}assets/consul-ui.css">

    {{content-for "head-footer"}}
  </head>
  <body>
    <noscript>
        <div style="margin: 0 auto;">
            <h2>JavaScript Required</h2>
            <p>Please enable JavaScript in your web browser to use Consul UI.</p>
        </div>
    </noscript>
    {{content-for "body"}}
    <script src="{{rootURL}}assets/vendor.js"></script>
    <script>
      var appendScript = function(src) {
        var $script = document.createElement('script');
        $script.src = src;
        document.body.appendChild($script);
      }
      if(!('TextDecoder' in window)) {
        appendScript('{{rootURL}}assets/encoding-indexes.js');
        appendScript('{{rootURL}}assets/encoding.js');
      }
    </script>
    <script src="{{rootURL}}assets/consul-ui.js"></script>
    <script>
      CodeMirror.modeURL = {
        replace: function(n, mode) {
          switch(mode) {
            case 'javascript':
              return '{{rootURL}}assets/codemirror/mode/javascript/javascript.js';
            case 'ruby':
              return '{{rootURL}}assets/codemirror/mode/ruby/ruby.js';
            case 'yaml':
              return '{{rootURL}}assets/codemirror/mode/yaml/yaml.js';
          }
        }
      };
    </script>
    {{content-for "body-footer"}}
  </body>
</html>
