A Kepler plugin package is a standard Meteor package that contains a plugin.js file that defines the UI structure, the templates and their placement rendered inside the User Interface, custom settings and others configurations in the Kepler environment, similar in concept to package.js. The following is an example of a plugin definition:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

K.Plugin({
name: 'pluginName',
templates: {
navSidebar: 'navSidebar_pluginName',
panelProfile: 'panelProfile_pluginName',
panelUser: 'panelUser_pluginName',
popupPlace: 'popupPlace_pluginName'
},
schemas: {
place: {
fieldName: [], /* extend base model with additional fields */
},
pluginModel: {
updatedAt: '',
fieldId: '',
/* define new model of data, */
}
},
filters: {
placePanel: { /* extend a default filter */
fields: {
fieldName: 1
}
},
pluginFilter: { /* define new filter */
fields: {
fieldName: 1
}
}
},
settings: {
"public": {
"pluginName": {
/* settings */
}
}
}
});
Edit on GitHub
Licensed under Creative Commons