Comments (17)
Can you give m some more information on your setup so I can try to reproduce the issue.
I need the versions of the following: Clojure, Lein, and lien-cljsbuild.
from enfocus.
If possible can you setup a github repo that I can pull down and look at. In particular I want to see javascript files that are produced.
from enfocus.
This is how my project.clj looks like:
(defproject integrator "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url "http://example.com/FIXME"
:dependencies [[org.clojure/clojure "1.5.0-RC1"]
[compojure "1.1.3"]
[lib-noir "0.3.0"]
[enfocus "1.0.0-beta2"]
[enlive "1.0.1"]
[com.mysql/connectorj "5.1.12"]
[korma "0.3.0-beta11"]
[org.clojure/clojurescript "0.0-1450"]]
:plugins [[lein-ring "0.7.5"]
[lein-cljsbuild "0.2.10"]]
:ring {:handler integrator.handler/app}
:profiles
{:dev {:dependencies [[ring-mock "0.1.3"]]}}
:aot []
:source-paths ["src/clj"]
:cljsbuild {
:builds {
:main {
:source-path "src/cljs"
:compiler {
:output-to "resources/public/js/main.js"
:warnings true
:optimizations :whitespace
:pretty-print true
:print-input-delimiter false
:output-dir ".clojurescript-output"
:libs ["closure/library/third_party/closure"]
}}}}
:war {:name "integrator.war"})
I will set up the github repo shortly.
from enfocus.
This is my project: https://github.com/dbushenko/websample
And one question more: when do you plan to release this version? I think Enfocues is fabulous. I have convinced my manager to use Clojure web stack (including Enfocus) for our next project. Can't wait for version 1.0 of Enfocus :-)
from enfocus.
I was able to pull down the code and get it to work under optimization advanced. I did have to make one modification to it but this affected both simple and advanced, so I am not sure it is the problem you are seeing. The change I made below was to wait for the load of snippets and templates.
(set! (.-onload js/window) #(em/wait-for-load (mystart)))
from enfocus.
Can you push your main.js compiled under advanced so I can make sure there are no differences from mine.
from enfocus.
No problem, 5 minutes...
from enfocus.
Done. Have a look at /resources/public/js
main.whitespace.js -- compiled with optimizations "whitespace".
main.advanced.js -- compiled with optimizations "advanced".
BTW, may be you may add me to skype? My id is "d.bushenko".
Happy New Year! :-)
from enfocus.
What time is it where you are? Is there are reason you are using such an old version of ClojureScript? It looks like I am compiling mine with a newer version even though I am using your project file. Not exactly sure why.
from enfocus.
Hmmm.... I thought I'm using the latest released version. Will search for newer and try again.... Weird....
from enfocus.
Clojurescript is bundled with lein-cljsbuild so you don't need to specify it in your dependencies.
from enfocus.
I can't say what's going on, but removing the version line has just broken everything. I'm trying to get the reason, so I can't answer your question right now.
BTW, does it work for you?
from enfocus.
Yes it does work for me, I will fork and push up my main.js. You may need
to add the line wait-for-load line. The new version of cljs is faster and
may be hitting the condition before the request has time to load.
CK
On Mon, Dec 31, 2012 at 10:57 AM, dbushenko [email protected]:
I can't say what's going on, but removing the version line has just broken
everything. I'm trying to get the reason, so I can't answer your question.BTW, does it work for you?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/37#issuecomment-11779345.
from enfocus.
Great! Thanks!
from enfocus.
Yes, adding wait-for-load made the script working. Thanks again! :-) Happy New Year!
from enfocus.
Sweet! Does this mean I can close the ticket? Also I realized I didn't give you a response on releasing 1.0.0. I will probably be released last Jan or early Feb depending on if any issues are found.
from enfocus.
Yes, no problem with optimizations more.
And thanks again for great work!
from enfocus.
Related Issues (20)
- Need escape content in ef/content or make other function that do correct html escaping.
- transform object DocumentFragment to string HOT 5
- event handler functions within hiccup-html HOT 2
- replace-vars broken in clojurescript 1.7.145 HOT 6
- Great project
- Extractor extract node HOT 1
- Clone-for and lists HOT 15
- Hiccup input control - checked and disabled not working HOT 2
- Requiring enfocus.macros under Clojure 1.10 and above triggers an error
- compiling fails at target/cljsbuild-compiler-0/enfocus/core.cljs HOT 4
- get-prop doesn't work on data attributes HOT 1
- listen-live looses event information HOT 6
- Multiple Extractions HOT 5
- Add optional callback for when view-binding function completed HOT 6
- debug should be set to false by default HOT 4
- (read-form) on IE8 results in [object]is not ISeqable HOT 7
- How can I use holder.js in html snippet? HOT 4
- Difference in ef/content behaviour HOT 2
- clone-for issue "TypeError: enfocus.core.last_element_child is undefined" HOT 1
- Function based inline snippets HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enfocus.