mostly all the resources (templates/static) should be at their right
[unfold.git] / engine / templates / plugin-setenv.js
diff --git a/engine/templates/plugin-setenv.js b/engine/templates/plugin-setenv.js
new file mode 100644 (file)
index 0000000..2cfd6e3
--- /dev/null
@@ -0,0 +1,6 @@
+{# from plugin.php Plugin.render() #}
+{# Plugin initialization (if the plugin has the right structure) #}
+if (typeof jQuery('#{{ domid }}').{{ classname }} != 'undefined') {
+    jQuery('#{{ domid }}').{{ classname }}({{ settings_json|safe }});
+    {#jQuery('#{{ domid }}').{{ classname }}('show');#}
+};