 
 (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]

       [:link {:rel "icon" :type "image/png" :href  (:png favicons)}]

       [:script {:type "text/javascript"} (context-js ctx)]
       (include-js "/js/dataLayer.js")
       (include-js (gtm ctx))]

      [:body {:class (if (nil? (get-in ctx [:user])) "anon")}
       [:div#app]

   "/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)))))
