Git Product home page Git Product logo

bem-json's People

Contributors

delfrrr avatar

Stargazers

 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

bem-json's Issues

Декларация для элемента с модификацией

Для блоков с определенными модификаторами мы имеем возможность создавать декларации, для элементов можно использовать только if внутри декларации элемента. Возможно было бы прикольно сделать возможность описывать декларации для элемента с модификатором тоже

Синхронный вызов ctx.wait ctx.resume

Если сделать несколько последовательных элементов в которых последовательно выполняется ctx.wait ctx.resume шаблон рисуется неверно

Допилить асинхронный билд

  • ctx.wait() останавливает выполнение деклараций до ctx.resume()
  • buildAsync передает в callback ошибку и результат
  • Ошибка в декларации должна приводить к сворачиванию элемента а вылетанию ошибки

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
    }
});

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.