This website works better with JavaScript.
Home
Explore
Help
Sign In
public
/
postgrest-mithril
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
add util/with_layout.js
master
Bing Sun
5 years ago
parent
14b9b374c2
commit
175bcf5c3a
Signed by:
sunb
GPG Key ID:
F7795F8C590626AB
1 changed files
with
15 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+15
-0
src/util/with_layout.js
+ 15
- 0
src/util/with_layout.js
View File
@@ -0,0 +1,15 @@
export default config => {
if (typeof config == 'undefined')
config = {}
if (!config.hasOwnProperty('content'))
config = {'content': config}
return {
view: vnode => [
config.prologue,
m('main', config.content),
config.epilogue
]
}
}
Write
Preview
Loading…
Cancel
Save