Skip to content

Releases: liamqma/sync-views

v0.3.0

21 Jul 12:50
Compare
Choose a tag to compare

Add ability to have redux Provider wrapper.

Usage:

var store; // Redux store
var render = views('examples', {
  map: { js: 'redux' }
});
render('user', {store: store}); // <Provider store={store}><User /></Provider>

v0.2.0

21 Jul 06:28
Compare
Choose a tag to compare

Merge opts.locals

Usage:

var render = views('examples', {
  locals: { name: 'foo' }
});

render('user'); // locals should contain { name: 'foo' }

v0.1.0

20 Jul 11:42
Compare
Choose a tag to compare

Add default map [{ jade: 'jade', js: 'react' }]