Code Monkey home page Code Monkey logo

Comments (8)

mquandalle avatar mquandalle commented on May 18, 2024

Yes I think that's an issue (BTW I've not checked jade behavior in this case).

We should also consider the following notation:

p.
  foo
  bar

from meteor-jade.

DenisGorbachev avatar DenisGorbachev commented on May 18, 2024

👍 this really bugs me down. Could you please fix it? :)

from meteor-jade.

DenisGorbachev avatar DenisGorbachev commented on May 18, 2024

By the way, Spacebars parser leaves all whitespace intact. Can Jade parser do the same?

from meteor-jade.

mquandalle avatar mquandalle commented on May 18, 2024

I'm currently abroad but I plan to work on this when I get back home. I'll just add a space between two consecutive children, but I'll not leave whitespace intact like in Spacebars. What is your use case to do that?

from meteor-jade.

DenisGorbachev avatar DenisGorbachev commented on May 18, 2024

Bootstrap:

            a.dropdown-toggle(href="#", data-toggle="dropdown")
              | {{currentUser.profile.name}}
              |  
              b.caret

Social buttons:

  .social
    .g-plusone(href="/" data-size="standard")
    |  
    a.twitter-share-button(href='https://twitter.com/share', data-size="large", data-related='priestIO') Tweet
    |  
    .fb-like.fb-button(data-layout='button_count', data-action='like', data-show-faces='true', data-share='false')

Bootstrap again:

              .col-lg-9.name
                h2
                  | #{name}
                  |  
                  small #{number}

I agree that leaving whitespace strictly as written in template is not a goal; a single space or newline between nodes will do.

from meteor-jade.

DenisGorbachev avatar DenisGorbachev commented on May 18, 2024

WooHoo! Works perfectly now.

Thank you, Maxime! :)

from meteor-jade.

mquandalle avatar mquandalle commented on May 18, 2024

Released in 0.2.3.

from meteor-jade.

dweldon avatar dweldon commented on May 18, 2024

Thanks so much for fixing this! 😸

from meteor-jade.

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.