easywebhub / tasks

List of tasks for EasyWeb members
1 stars 4 forks source link

Handlebar, extend partial not work #20

Closed baotnq closed 7 years ago

baotnq commented 7 years ago

repo https://github.com/baotnq/mtfashion-v2

@nemesisqp debug xem van de o day nghe, chu repo tuong tu chay duoc

nemesisqp commented 7 years ago

Do bị trùng helper, extend là helper extend của handlebar-layouts trùng với helper extend của assemble. project draco's handlebars-helper.js line:9 đã custom load helper exclude extend trong object helper

['array', 'code', 'collection', 'comparison', 'date', 'fs', 'html', 'i18n', 'inflection', 'logging', 'markdown', 'match', 'math', 'misc', 'number', 'path', 'string', 'url'].forEach(function(name) {
        Helpers[name]({
        handlebars: Handlebars
        });
    });

project mtfashion-v2's handlebars-helper.js line:9 (load all assemble helpers)

Helpers({handlebars: Handlebars});

sửa lại như bên draco sẽ chạy như bt

baotnq commented 7 years ago

test OK