Giter Club home page Giter Club logo

Comments (7)

kizu avatar kizu commented on August 17, 2024 1

@kandrianov Can you give me a link to the issue in Pug's repo about this? Why we can do nothing about it?

In the worst case, we still could use the ._modifier syntax I guess, and reassign it in the output to -- when needed. But I think it would be better to talk with Pug developers if there is an issue/conflict with the classnames starting with -.

from bemto.

glebmachine avatar glebmachine commented on August 17, 2024

You need to replace .jade file extension to .pug
Soon, pug community will add legacy support (on 2.0.0 milestone)

For now, rename files, or use my temp fork: https://github.com/glebmachine/bemto

from bemto.

kizu avatar kizu commented on August 17, 2024

Pug support is planned, of course.

from bemto.

kandrianov avatar kandrianov commented on August 17, 2024

Only one problem with switching to pug - its modifiers with '--' for separator setting, cause ".--modifier" is not a valid classname. And we can do nothing with it.
Can we avoid using this? it's not official syntax, right?

from bemto.

jonscottclark avatar jonscottclark commented on August 17, 2024

Hey @kizu, ran into this today when I was trying to migrate to Pug.

Here's the line in pug-lexer that throws the error: https://github.com/pugjs/pug-lexer/blob/master/index.js#L406-L408

from bemto.

kizu avatar kizu commented on August 17, 2024

Just released [email protected] in npm, bemto.jade wouldn't be updated now. If someone would have issues with it, feel free to fill new issues up!

from bemto.

jonscottclark avatar jonscottclark commented on August 17, 2024

@kizu That's amazing! This means that I will actually convert to Pug fully now :) I'll try out bemto.pug and report anything I find.

from bemto.

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.