git ssb

0+

ev / microbay



forked from Dominic / patchbay

Tree: 4a4fd8df1c6e8e0f90790c6757e9dfb0efa031c2

Files: 4a4fd8df1c6e8e0f90790c6757e9dfb0efa031c2 / modules / split.js

336 bytesRaw
1var h = require('hyperscript')
2
3var screen_view =
4 require('../plugs').first(exports._screen_view = [])
5
6exports.screen_view = function (path) {
7 var m = /^split\s*\((.*)\)$/.exec(path)
8 if(!m)
9 return
10
11 return h('div.row',
12 m[1].split(',').map(function (e) {
13 return screen_view(e.trim())
14 }).filter(Boolean)
15 )
16}
17
18

Built with git-ssb-web