Initial approach to a widget based plugin system
Change-Id: I8ad07c817248a0d205ec9eb66f0dc579fbcd7160
diff --git a/dev/demo/plugin-serverdemo.js b/dev/demo/plugin-serverdemo.js
new file mode 100644
index 0000000..d1e6e20
--- /dev/null
+++ b/dev/demo/plugin-serverdemo.js
@@ -0,0 +1,16 @@
+requirejs.config({
+ baseUrl: '/js/src',
+ paths : {
+ 'lib': '../lib'
+ }
+});
+
+define(['app/en','plugin/server','lib/domReady','init','hint/foundries/cnx'], function (lang, pluginClass, domReady) {
+ domReady(function () {
+ console.log("Los geht's");
+ var p = pluginClass.create();
+
+ // Open widget!
+ p.addWidget(document.getElementById('container'), 'http://localhost:3003/demo/plugin-client.html');
+ });
+});