|
@@ -1,15 +1,15 @@ |
|
|
export default config => { |
|
|
|
|
|
if (typeof config == 'undefined') |
|
|
|
|
|
config = {} |
|
|
|
|
|
|
|
|
export default options => { |
|
|
|
|
|
if (typeof options == 'undefined') |
|
|
|
|
|
options = {} |
|
|
|
|
|
|
|
|
if (!config.hasOwnProperty('content')) |
|
|
|
|
|
config = {'content': config} |
|
|
|
|
|
|
|
|
if (!options.hasOwnProperty('content')) |
|
|
|
|
|
options = {'content': options} |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
view: vnode => [ |
|
|
view: vnode => [ |
|
|
config.prologue, |
|
|
|
|
|
m('main', config.content), |
|
|
|
|
|
config.epilogue |
|
|
|
|
|
|
|
|
options.prologue, |
|
|
|
|
|
m('main', options.content), |
|
|
|
|
|
options.epilogue |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |