rename js template
[myslice.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..605c89b
--- /dev/null
@@ -0,0 +1,6 @@
+{# from plugin.php Plugin.render() #}
+{# Plugin initialization (if the plugin has the right structure) #}
+if (typeof jQuery('#{{ uuid }}').{{ classname }} != 'undefined') {
+    jQuery('#{{ uuid }}').{{ classname }}({{ settings_json|safe }});
+    {#jQuery('#{{ uuid }}').{{ classname }}('show');#}
+};