These are chat archives for bem/talk

1st
Jul 2014
Ilya Rogov
@ilyar
Jul 01 2014 08:10
or
// some-block.deps.js
({
  external: { 'external-lib': '~3.0.1' }
  mustDeps: []
})
Ragnar
@Murdalay
Jul 01 2014 08:40
Hi everybody!
Yelena Jetpyspayeva
@mursya
Jul 01 2014 11:22
Cool to see so many people here!
Ivan Voischev
@voischev
Jul 01 2014 13:08
Ура!
Ivan Voischev
@voischev
Jul 01 2014 13:19
А что label выпилили у блока input в новом обновлении bem-components?
Sergey Berezhnoy
@veged
Jul 01 2014 14:45
да — label не является частью инпута, это отдельная штука у какого-то составного блока, который использует инпут
Ilya Rogov
@ilyar
Jul 01 2014 15:14
тоже удивлен удалению label, но приятно удивлен, вместе с ним ушел и модификатор has-label не нравился он мне, input можно использовать и без label:
{
  tag: 'label',
  attrs : { for : 'bem-input-1'},
  content : 'Label'
},
{
  block : 'input',
  id: 'bem-input-1',
  name: 'bem-input-1'
},
{
  tag: 'label',
  content : [
    'Label',
    {
      block : 'input',
      name: 'bem-input-2'
    },
    {
      block : 'input',
      name: 'bem-input-3'
    }
  ]
}
Ilya Rogov
@ilyar
Jul 01 2014 15:23
я понял так в bem-components label будет элементом блока form
Sergey Berezhnoy
@veged
Jul 01 2014 15:31
ну пока у нас в bem-components нет form (и в ближайшем релизе не будет, т. к. там пока есть много вопросов, в том числе с дизайном), но в form точно нужен будет label — кроме того лейбл может быть кастрмным пользовательским, в других каких-то блоках
Ivan Voischev
@voischev
Jul 01 2014 15:41
Да нормально. Фиганул label блоком в проект, а для инпута по match(this.ctx.label) написал решение с моим лейблом
Dmitry Egerev
@dmit3y
Jul 01 2014 19:25
Hi all. Is there any ability to use bemhtml as template engine in non-js projects? Advantages?
Sergey Berezhnoy
@veged
Jul 01 2014 19:26
Hi! What did you mean "non-js"? Like PHP or Python?
Dmitry Egerev
@dmit3y
Jul 01 2014 19:27
In my case it's python.
Sergey Berezhnoy
@veged
Jul 01 2014 19:30
Currently BRMHTML implemented only as VanillaJS — so you need to use any JS engine. For example throught the V8-bindings to Python (search it) or throught NodeJS and some interaction between NodeJS-app and your Python-app.
there is https://github.com/bem/bem-django also — but it's little bit outdated and can be used only as principle inspire
Dmitry Egerev
@dmit3y
Jul 01 2014 19:34
Thanks. I found this thing https://github.com/arhibot/python-bem
It's outdated, but I think it's what I really need.
Sergey Berezhnoy
@veged
Jul 01 2014 19:36
yes — it's the same as in bem-django
you can update it with bem-core version of bemhtml and contribute back
Dmitry Egerev
@dmit3y
Jul 01 2014 19:42
Hm. I think they do different things.
bem-django allows write django apps in bem, but python-bem can be used instead of django template engine or jinja
Sergey Berezhnoy
@veged
Jul 01 2014 19:44
ups... ;-) yep, you are absolutely rigtht — iPhone is no so comfy for quick searches
Dmitry Egerev
@dmit3y
Jul 01 2014 19:50
:) I want to try this thing and bem in the near future...
Sergey Berezhnoy
@veged
Jul 01 2014 19:51
cool! feel free to ask ;-)
Dmitry Egerev
@dmit3y
Jul 01 2014 20:07
Ok)
A bit offtop: In Yandex backends written in js? Everywhere?)
Sergey Berezhnoy
@veged
Jul 01 2014 20:25
some backends writen in JS throught the bindings (Perl, Python) and Node.js — and we gonna increase this count
Vladimir Grinenko
@tadatuta
Jul 01 2014 23:35

@ilyar still not sure if i understand your idea well.

to get external library to the project there's bower.json.

deps files now are all about defining entities current entity is depend upon. and the result of deps.js tech is a bundle with all the deps of the whole bundle are listed in the right order and according to the techs. and that's it. then while building other bundles we can search levels for listed entities and add include them to the result.

so i still can't find the use for this new field you suggest. can you provide your real use case for it, please?