GithubHelp home page GithubHelp logo

Jade about boy HOT 7 CLOSED

corysimmons avatar corysimmons commented on September 26, 2024
Jade

from boy.

Comments (7)

corysimmons avatar corysimmons commented on September 26, 2024

I think it was in Jade at one point. Does this work? Just used some quick html2jade converter so I'm sure it's buggy:

!!! 5
html.no-js
//
    <![endif]
  head
    meta(charset='utf-8')
    meta(http-equiv='X-UA-Compatible', content='IE=edge')
    title
    meta(name='description', content='')
    meta(name='viewport', content='width=device-width, initial-scale=1')
    link(rel='stylesheet', href='css/style.css')
    //if lt IE 9
      script(src='js/vendor/selectivizr-1.0.2.min.js')
    script(src='js/vendor/modernizr-2.6.2-respond-1.1.0.min.js')
  body
    //if lt IE 9
      .browsehappy
        p
          | You are using an
          strong outdated
          | browser. Please
          a(href='http://browsehappy.com/', target='_blank') upgrade your browser
          | or
          a(href='http://www.google.com/chromeframe/?redirect=true', target='_blank') activate Google Chrome Frame
          | to improve your experience.
    //if lt IE 9
      script(src='http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js')
      script
        window.jQuery || document.write('<script src="js/vendor/jquery-1.11.0.min.js"><\\/script>')
    //if gt IE 8
    script(src='http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js')
    script
      window.jQuery || document.write('<script src="js/vendor/jquery-2.1.0.min.js"><\\/script>')
    //
      <![endif]
    script(src='js/plugins.js')
    script(src='js/main.js')

from boy.

antoniobrandao avatar antoniobrandao commented on September 26, 2024

Hehe I did exactly the same, and I got an error in one of those IE-related lines. Unfortunately I can't remember which one.

I thought of removing that line but that would go against the purpose.

I will try to reproduce the error and post it here

from boy.

corysimmons avatar corysimmons commented on September 26, 2024

@antoniobrandao Would you care to do this in a separate repo and maintain it? boy-jade

Will link you in README

from boy.

corysimmons avatar corysimmons commented on September 26, 2024

@antoniobrandao bump

from boy.

antoniobrandao avatar antoniobrandao commented on September 26, 2024

That sounds great, it would be an honor. I will give it a go. Give me just a few days, I'm in holidays at the moment, in a few days I'll put it up. Thanks

from boy.

corysimmons avatar corysimmons commented on September 26, 2024

👍

from boy.

corysimmons avatar corysimmons commented on September 26, 2024

@antoniobrandao I removed the conditional classes from the html elem but I'm still closing this. It would probably be best for any versions of this (Jade, Haml, Slim, etc.) to be in their own repo instead of people having to pull in those versions every time they want a pure html version.

from boy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.