-
Notifications
You must be signed in to change notification settings - Fork 88
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
Dependency on Giraffe feels excessive for the amount of HTML templating performed by the library #471
Comments
The initial reason for the The second reason fell flat as soon as we ran into all the bullshit issues with strong naming this assembly (see #464), but i have nonetheless kept it since. F# has a general problem that there are multiple html abstractions out there and i wanted to prevent having a library containing another implementation of that (also, i do not want to maintain a html template lib/module really). So once we get rid of the strong name, we get back the compatibility with giraffe applications and imo are fine. Also, i do not really get what the 'cost of a dependency being excessive' means here - Now that i think about it though - we could separate the html templating from the core lib completely, by also publishing |
It's not that the Giraffe.ViewEngine is big or complex (it isn't) - it's just another dependency that needs pulling in and its lifecycle will need to be managed by yourselves and Plotly.NET users. I checked how much code in Plotly.NET is actually using this library and it isn't very much (yet). In my view, the previous way you were doing it via "[FOO]" style placeholder string replacements was superior because, although many people might call it hacky, it was dead simple, easy to reason about and didn't require this additional dependency. I don't know what license the Giraffe ViewEngine is, assuming its compatible, have you considered just pulling in the source code directly into Plotly.NET so that you can manage the lifecycle of it yourselves and avoid the dependency? |
The Giraffe dependency should be reconsidered.
I understand it simplifies the HTML templating code - but really, the cost of the additional dependency is excessive, and there isn't that much HTML templating in the library anyway.
Unless there are plans to massively increase the amount of HTML templating in a future version of Plotly.NET I would suggest refactoring away from the Giraffe dependency.
Open to discussion
The text was updated successfully, but these errors were encountered: