help I have a problem in haml

0

This is my code

!!!5
    %html{class:"no-js", lang:"es"}
      %head
        %meta{charset:"utf-8"}
        %title La mejor comida.
        %meta{name:"description", content:"Come rico en el mejor restaurante de la ciudad, servicio de primera."}
        %link{rel:"stylesheet", href:"css/normalize.css"}
        %link{rel:"stylesheet", href:"css/style.css"}
        %meta{name:"viewport", content:"width=device-width, initial-scale=1"}
        %script{src:"js/vendor/modernizr-2.8.3.min.js"}
      %body
      ="<!--[if lt IE 9]>"
            %p{class:"browserupgrade"}
            Estas usando un navegador 
            %strong desactualizado. 
            Por favor 
            %a{href:"http://browsehappy.com/"}
            actualiza tu navegador 
            para una mejor experiencia.
        ="<![endif]-->"
        .video-container 
            %video{autoplay:true,loop:true,width:"1280",height:"720"}
                /Cambiar Videos, Poner el poster                      
                %source{src:"/videos/mp4/cambiar.mp4",type:"video/mp4"} 
    
asked by 11.04.2018 в 16:59
source

1 answer

0

The error indicates that you have given more spaces / tabs than you should, in this case 3 levels; remember that you must follow the proper indentation, that is, one level in each section; for example:

!!!5
    %html{class:"no-js", lang:"es"}
      %head
        %meta{charset:"utf-8"}
        %title La mejor comida.
        %meta{name:"description", content:"Come rico en el mejor restaurante de la ciudad, servicio de primera."}
        %link{rel:"stylesheet", href:"css/normalize.css"}
        %link{rel:"stylesheet", href:"css/style.css"}
        %meta{name:"viewport", content:"width=device-width, initial-scale=1"}
        %script{src:"js/vendor/modernizr-2.8.3.min.js"}
      %body
      ="<!--[if lt IE 9]>"
        %p{class:"browserupgrade"}
        Estas usando un navegador 
        %strong desactualizado. 
        Por favor 
        %a{href:"http://browsehappy.com/"}
        actualiza tu navegador 
        para una mejor experiencia.
      ="<![endif]-->"
        .video-container 
          %video{autoplay:true,loop:true,width:"1280",height:"720"}
            /Cambiar Videos, Poner el poster                      
            %source{src:"/videos/mp4/cambiar.mp4",type:"video/mp4"}
    
answered by 12.04.2018 / 21:36
source