GithubHelp home page GithubHelp logo

Availability on Clojars about ornament HOT 9 CLOSED

lambdaisland avatar lambdaisland commented on May 15, 2024 2
Availability on Clojars

from ornament.

Comments (9)

alysbrooks avatar alysbrooks commented on May 15, 2024 1

I think it's mostly a time thing rather than a hard-and-fast rule. Since there's outside interest, I can see whether we want to revisit this decision.

Note that you can use libraries directly from Git using the Clojure CLI tools and in Leiningen (using a plugin).

from ornament.

plexus avatar plexus commented on May 15, 2024 1

Hi @euporos , I've cut a first release of Ornament

[com.lambdaisland/ornament "0.0.7"]
{com.lambdaisland/ornament {:mvn/version "0.0.7"}}

Keep in mind that as long as we are 0.x.x we may still make breaking changes. We'd be very interested to hear about your experience trying it out though!

from ornament.

euporos avatar euporos commented on May 15, 2024 1

Thank you so much, @plexus, that's really great and certainly makes it easier to get one's feet wet. I'm well aware of the library being pretty alpha as of now and we're nowhere near swicthing all of our production code to it any time soon. But we're currently looking into options to improve our CSS pipeline and Ornament's value proposition makes it an interesting contender. So, thanks again and keep up the good work!

from ornament.

oxalorg avatar oxalorg commented on May 15, 2024

I would love to take it for a test drive

If you're using tools.deps, you can copy this and start hacking! 🥷 😊

com.lambdaisland/ornament {:git/url "https://github.com/lambdaisland/ornament"
                                   :git/sha "80ede082f2571ab3026795f86f401b9402b79896"}

from ornament.

plexus avatar plexus commented on May 15, 2024

Are you using it on the Clojure or ClojureScript side? if it's clj or cljc I feel fairly confident, the ClojureScript side hasn't been exercised as much.

from ornament.

JohanCodinha avatar JohanCodinha commented on May 15, 2024

I use it do declare style in .cljs files, with a shadow-cljs hook to build the css.

from ornament.

plexus avatar plexus commented on May 15, 2024

In that case I'm definitely interested to hear about how that's working for you, good or bad. You can also always drop into the Lambda Island discord if you like to exchange experiences https://discord.gg/rb82a62D

from ornament.

JohanCodinha avatar JohanCodinha commented on May 15, 2024

It's working so far, I save the file, it get compiled, the hook trigger and shadow push the new css file to to browser. The only tricky thing is related to macro expansion done on the clojure side so I can't use cljs fn inside a defstyled, but that's how cljs works so kind of expected. I have yet to try building for deploy.
(defn hook {:shadow.build/stage :flush} [build-state & _args] (let [css (o/defined-styles)] (when-not (blank? css) (spit "public/style.css" css))) build-state)

from ornament.

plexus avatar plexus commented on May 15, 2024

That's true, rules are compiled on the backend so they can't access frontend (cljs) functions. If you can use cljc then you can.

from ornament.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.