Giter Club home page Giter Club logo

html2jade-website's Introduction

A site that will convert a HTML snippet to a Jade snippet. Useful for testing out how something would look in Jade vs HTML

html2jade-website's People

Contributors

aaronpowell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

html2jade-website's Issues

Inconsistent code

Hi, I took a line from Font Awesome and put in in the converter

<i class="fa fa-camera-retro fa-5x"></i> fa-5x

The converter generates the following

i.fa.fa-camera-retro.fa-5x
  |  fa-5x

Converting it back with jade yields

<i class="fa fa-camera-retro fa-5x"> fa-5x</i>

where this time the fax-5x is within the <i>-tags.
Not a big deal, but maybe you are interested. Cheers

Bad nesting conversion

the html:

<div id="foo">
  <h1>Hello world</h1>
  <div id="bar">
    <p>Blah blah blah</p>
  </div>
</div>

produces this jade:

#foo
    h1 Hello world
      #bar
        p Blah blah blah

Note that in the html, div#bar is not a child of the h1.

Upgrade to latest version of html2jade

The latest version contains many fixes. I was trying to convert some html markup yesterday and noticed it appends a . if there is an empty class which does not render correctly. The latest html2jade version fixes this issue.

Thanks

Just wanted to leave a note saying thanks for having this site up, I use it all the time instead of popping open terminal. ๐Ÿ‘

Website is down!

Hey, thought I might give you a heads up as your page is down. Probably a Heroku issue though.

Great work!
Sacha

Doesn't work at all on http://html2jade.aaron-powell.com/

Provided

<!doctype html>
<html>
<head>
    <link type="text/css" rel="stylesheet" href="/site.css" />
    <title>test</title>
</head>
<body>
    <h1>A Big Ol Test</h1>
</body>
</html>

and got back

doctype html
html
  head
    link(type='text/css', rel='stylesheet', href='/site.css')
    |     
    title test
  body
    h1 Hello world!

The API is not working

Post:
curl -X POST --data "<div></div>" "http://html2jade.aaron-powell.com/convert"

Error:

<!DOCTYPE html>
    <html>
    <head>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <style type="text/css">
        html, body, iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>

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.