bem / bem-xjst

bem-xjst (eXtensible JavaScript Templates): declarative template engine for the browser and server
https://bem.github.io/bem-xjst
Other
116 stars 48 forks source link

Независимая сборка #98

Closed voischev closed 9 years ago

voischev commented 9 years ago

Очень хочется bemhtml собирать любым способом.

Например

var template = bem.compile([
    require(‘./b1.bemhtml’), 
    require(‘./b2.bemhtml’), 
    require(‘./b3.bemhtml')
]);

template.apply({ block: 'b1', content: [{ block: 'b2'}, { block: 'b3' }]});

Так же кажется, что для нормального использования на клиенте мешает vm? Зачем для исполнения шаблонов новый контекст? И само собой хочется делать так:

module.exports = function() {
    return block('b6').content(function() {
        return require('moment')(this.ctx.date);
    });
} 

Ни хочется ли вам нам руки развязать? Пойдем куда нибудь с этими замечательными технологиями завоевывать дисковое пространство приложений))

awinogradov commented 9 years ago

:+1: :+1: :+1: :+1: :+1: :+1:

voischev commented 9 years ago

сс/ @veged @blond @tadatuta @zxqfox

tadatuta commented 9 years ago

Давайте голосом это обсудим, кажется, что в первой части ты хочешь чего-то странного, а во второй — то, что изначально работает ;)

tadatuta commented 9 years ago

@voischev @awinogradov Закрываем?

awinogradov commented 9 years ago

Да, обсудили голосом. On Wed 2 Sep 2015 at 23:04 Vladimir Grinenko notifications@github.com wrote:

@voischev https://github.com/voischev @awinogradov https://github.com/awinogradov Закрываем?

— Reply to this email directly or view it on GitHub https://github.com/bem/bem-xjst/issues/98#issuecomment-137228394.

voischev commented 9 years ago

:+1: