git ssb

16+

Dominic / patchbay



Commit c6b06608a01594867c03f3dff3be07c76d6c6cf8

add example style export from about.js

mix irving committed on 12/20/2016, 5:52:57 AM
Parent: a2b45bedac9a5c0edec8b3b67f7f4d42d0748267

Files changed

modules_basic/about.jschanged
modules_basic/about.jsView
@@ -5,12 +5,26 @@
55 exports.needs = {
66 blob_url: 'first'
77 }
88
9-exports.gives = 'message_content'
9 +exports.gives = {
10 + 'mcss': true,
11 + 'message_content': true
12 +}
1013
14 +var style = `
15 + About {
16 + background-color: red
17 + }
18 +`
19 +
1120 exports.create = function (api) {
12- return function (msg) {
21 + return {
22 + message_content,
23 + mcss: style
24 + }
25 +
26 + function message_content (msg) {
1327 if(msg.value.content.type !== 'about') return
1428
1529 var about = msg.value.content
1630 var { about: aboutId, name, image, description } = about

Built with git-ssb-web