Comments (7)
@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.
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.
Pug support is planned, of course.
from bemto.
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.
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.
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.
@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)
- codepen.io HOT 1
- Ability to turn off inline element detection and context HOT 2
- Mixin to place element and set context at the same time HOT 5
- SUIT CSS support HOT 2
- Prefix shouldn't be added to non-first blocks HOT 1
- Форматировать отступ в выхлопе HOT 3
- How add custom class to element without block prefix? HOT 1
- Add setting for delimiter of class names. HOT 5
- Можно ли как-то получить наследование имени блока на уровень выше? HOT 3
- Перевод bemto в pug HOT 2
- Incorrect tag generator for href elements HOT 1
- Pug unbuffered code don't includes HOT 2
- bemto with JSX HOT 1
- How to make a bemto and webpack ?
- How to disable automatic attributes? HOT 1
- v-bind:src bug in bemto HOT 1
- Webpack support HOT 4
- Блок и элемент 2в1. HOT 2
- Scope of elements for block HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bemto.