How do I put a html tag conditional in jade?

后端 未结 7 721
逝去的感伤
逝去的感伤 2021-02-01 17:27

In jade, I want to put in a html tag conditional as per this method, which puts in




        
7条回答
  •  借酒劲吻你
    2021-02-01 17:34

    This method works, with the closing html tag:

    !!! 5
    //if lt IE 7
        
    //if IE 7
        
    //if IE 8
        
    // [if gt IE 8] 

    from: https://gist.github.com/kmiyashiro/1140425#comment-675550

    Update:

    As pointed out by kumar-harsh this behaviour has now been depreciated, if you need this functionality you now should use regular html:

    
    
      
    
    
    

    from: https://github.com/visionmedia/jade/issues/1345?source=cc#issuecomment-31920732

提交回复
热议问题