 
 (defn js-list [ctx]
     (map #(with-version ctx %) (conj asset-js "/js/salava.js")))
+
+(defn plugin-js [ctx]
+ (let [f (first (plugin-fun (get-plugins ctx) "block" "pluginjs"))]
+   (if f (f ctx) "")))
 
 
 (defn context-js [ctx]

       "<![endif]-->"
       (include-js "/assets/es6-shim/es6-shim.min.js" "/assets/es6-shim/es6-sham.min.js")
       (apply include-js (js-list ctx))
       #_(include-js "https://backpack.openbadges.org/issuer.js")]))))


(defn main-response [ctx current-user flash-message meta-tags]

   "/assets/leaflet/leaflet.js"
   "/js/ckeditor/ckeditor.js"])

(defn with-version [ctx resource-name]
  (let [version (get-in ctx [:config :core :asset-version])]
    (str resource-name "?_=" (or version (System/currentTimeMillis)))))
