Hi Curtis,

this solution works as expected, thank you very much.

Best Regards,
Sven

Am Donnerstag, 3. Juli 2014 18:30:03 UTC+2 schrieb Curtis Summers:
>
> I'm using ring.middleware.force-reload to always reload the namespaces 
> that reference my enlive templates.  (only in dev, of course)
>
> https://github.com/citizenparker/ring-middleware-force-reload
>
>
> Hope that helps,
>
> Curtis
>
> On Wednesday, July 2, 2014 3:14:16 PM UTC-5, Sven Richter wrote:
>>
>> Hi,
>>
>> I am trying to reload my enlive templates with a watcher, how it was 
>> suggested in this issue: https://github.com/cgrand/enlive/issues/6
>>
>> I am calling this function of start of my application:
>>
>>    (watcher/watcher ["resources/"]
>>                         (watcher/rate 50) ; poll every 50ms
>>                         (watcher/on-change (fn [file] (do (println "file 
>>    changed: " file)
>>                                              ;(use 
>>    'de.sveri.clj.adspread :reload) ;as soon as I uncomment this, the 
>> anonymous 
>>    function is not called anymore
>>    ))))
>>    
>> But just like I stated in the comment, as soon as I try to reload a 
>> namespace the anonymous function is not executed anymore, whereas without 
>> the (use ...) call it gets executed on file change.
>> I also tried to call (reload 'namespace) but that did not work either.
>>
>> Any ideas on how to fix this or make enlive templates reload on change?
>>
>> Best Regards,
>> Sven
>>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to