Closed backflip closed 7 years ago
@backflip There are some qunit tests failing:
Test failed: slideshow: Test whether clicking next button updates "currentItem" property
[16:55:17] Failed assertion: currentItem is 1, expected: 1, but was: 0
For any reasons, the prev() function works fine, but the next() function doesn't calculate properly.
@corinneroelli, nice catch, the slideshow demo page had no initial slides but only dynamically loaded ones (due to a data inheritance issue) and the JavaScript did not account for dynamically added slides, preventing the paging from working correctly. Both issues fixed.
Our demo QUnit test is rather useful!
@orioltf, yep, rebasing is ongoing.
Rebased.
However, the change in https://github.com/unic/estatico/pull/17 was apparently a bad idea since it prevented the data helper from accessing the same handlebars instance (necessary to have the same partials and helpers as the html
task's handlebars instance). That's why I had to refactor the helpers/handlebars.js
(and all the tasks relying on it).
Goals:
html
task to the data layer. The idea is to make it more obvious what's going on. While explicitly setting up variant data in the.data.js
file instead of the gulp task might be a bit more "laborious", it should make it easier to debug and extend.meta
andprops
(for both modules and pages)Visual result:
What do you think?