-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Generate map files from the css renderer #216
Comments
Wow, sounds like a great idea! Lemme know if you need help...
|
That would be very useful! PRs welcome. |
I've pushed the first step to https://github.com/seereason/clay, a patch that adds a state monad to the Css type to hold the |
Can anyone explain why travis-ci is failing? https://github.com/seereason/clay/runs/2472160906 |
From a superficial look it seems like that the |
You could cherry pick the commit |
I'm stuck on ghc-8.6.5 and ghcjs-8.6.0.1 for now. Just FYI. But of course travis can run what it likes. |
Next step: need to track the position in the generated file (the Builders.) Each mapping is a name and position in the original file (which will come from the |
You could open a pull request, and I'll advise. Maybe @bsima can help as well. |
My biggest challenge right now is how to reliably collect all the Css values in my program so they can be rendered and turned into something that can be served to the browser. |
Do you have some example to illustrate what you mean? |
Hmm, let me look over my code. |
My question is, what is the best way to ensure that all the Css values for all the subsystems of my app (search, drag, tables, layout, many others) all get rendered, written into files, and installed so the server can see them and serve them to the client. Maintaining a list of them in the server main is error prone. To make sure the client and server agree on class names, I use a class
Now scattered throughout the code we have
and in the client
So how do we ensure that all the Css values in the program get to a place where the server can see them and serve them to the running clients? I've gone through a couple of solutions, but I wondered if I'm missing something obvious. |
One possibility is to have a class |
This issue has not seen any activity in a long time. If no further activity occurs, it will be closed after ten weeks. |
It looks to me like it would be possible to use the sourcemap package (https://hackage.haskell.org/package/sourcemap) and the mechanisms in GHC.Stack to generate a map file that would point you to lines in the Clay Haskell source from the browser's developer console. I hope to take a stab at this in the near future, but welcome any input or assistance.
The text was updated successfully, but these errors were encountered: