girouette
girouette copied to clipboard
Make a demo with CSS generation in frontend land
Girouette, Instaparse and Garden are all written in CLJC, which means that it should be possible to generate the CSS content while running in the browser.
That could be a good development setup, as it would be independent from the various build tools which the Clojure community enjoys.
Very interesting! I am curious to see this approach. Could be useful so the user of an app could customize the site theme dynamically. Just regenerate the css based in the config file.
There are many ways to collect the list of the CSS classes used in a webapp:
- By traversing the DOM tree dynamically.
- By using a macros which collect the CSS classes statically or dynamically.
- By explicitly providing a generated sequence of CSS classes to Girouette.
I understand that. I still want to generate a default list for now.
On Wed, Nov 24, 2021, 2:28 AM Vincent Cantin @.***> wrote:
There are many ways to collect the list of the CSS classes used in a webapp:
- By traversing the DOM tree dynamically.
- By using a macros which collect the CSS classes statically or dynamically.
- By explicitly providing a generated sequence of CSS classes to Girouette.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/green-coder/girouette/issues/26#issuecomment-977362651, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACS2CGU7PXO3GLVAFS3N2LTUNQ5VJANCNFSM4WEB4EMQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.