bem-json's People
bem-json's Issues
Декларация для элемента с модификацией
Для блоков с определенными модификаторами мы имеем возможность создавать декларации, для элементов можно использовать только if внутри декларации элемента. Возможно было бы прикольно сделать возможность описывать декларации для элемента с модификатором тоже
Сделать асинхронный билд
Синхронный вызов ctx.wait ctx.resume
Если сделать несколько последовательных элементов в которых последовательно выполняется ctx.wait ctx.resume шаблон рисуется неверно
Допилить асинхронный билд
ctx.wait()
останавливает выполнение деклараций доctx.resume()
buildAsync
передает в callback ошибку и результат- Ошибка в декларации должна приводить к сворачиванию элемента а вылетанию ошибки
Сделать BEM.HTML независимым от BEM.INTERNAL
Declarations for element with modification
It would be good to declare templates for element with declaration.
For example:
BEM.JSON.decl({
block: 'form',
elem: 'input',
modName: 'type',
modVal: 'checkbox'
}, {
onElem: function (ctx) {
// do something
}
});
Делать throw в _declErrorHandler на клиенте
ctx.wait потом ctx.wrap('') и ctx.resume
Ожидается что элемен исчезнет а он не исчезает.
Невозможно «закрасить» блок переданный во входных данных
Иногда хочется иметь возможность использовать блок, в качестве проксирующей обертки, которой не будет в выходных данных
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.