anchor.diff:  doctype html
  -html#ng-app(xmlns:ng='http://angularjs.org', ng-app='app', data-ng-csp='data-ng-csp', lang='cs', dir='ltr', ng-controller='AppCtrl', ng-init='init()')
  +html#ng-app(xmlns:ng='http://angularjs.org', lang='cs', dir='ltr', ng-controller='EditorCtrl', ng-init='init()')
     head
         title
         style(type='text/css')
           [ng-cloak] {display: none;}
         script(type='text/javascript').
           document.write('<base href="' + document.location + '" />')
  +        window.loader = document.createElement('div')
  +        window.loader.style.cssText = 'position:absolute;width:100%;height:100%;opacity:1;z-index:1000;background:#000;';
  +        document.body.appendChild(window.loader)
         meta(name='viewport', content='user-scalable=1.0,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0')
         meta(charset='UTF-8')
         // if lt IE 9
  
positive.code:         .content
            | Je nám líto, ale tvůj prohlížeč je patrně zastaralý a s naší aplikací si nerozumí. Prosím nainstaluj si jeden z následujících.
          .dim
      spinner
      .container(ng-cloak='ng-cloak')
        .topMenu
        .content
          #menu
  
negative.code:           document.createElement('ng:view');
        // if lt IE 8
          script(src="/vendor/json2/json2.js")
  
        script(type='text/javascript' src='vendor/angular-loader/angular-loader.js')
        script(type='text/javascript' src='vendor/scriptjs/dist/script.js')
        script(type='text/javascript')
          $script([
            'vendor/ace-builds/src-min/ace.js'
            ], function() {
              angular.bootstrap(document, ['editor']).ready(function(){
                window.loader.parentNode.removeChild(window.loader)
              });
            });
  
        //INJECT:css (js)
        //END INJECT
  