Skip to content
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

Sutil without fable (aspnetcore only) #50

Closed
jkone27 opened this issue Oct 25, 2021 · 4 comments
Closed

Sutil without fable (aspnetcore only) #50

jkone27 opened this issue Oct 25, 2021 · 4 comments

Comments

@jkone27
Copy link

jkone27 commented Oct 25, 2021

I was wondering if i can integrate sutil in a standard aspnetcore MVC app (server side rendered) from the www root folder, without requiring/using fable at all.

At first I thought that we might make use of a Fable compiler plugin to generate boilerplate,  
but it turns out that F# does a pretty good job of that itself.

Is the app.js file generated even without fable.js but purely including sutil package?

if so maybe adding a copy to the wwwroot folder would already make it work also for server aspnetcore? thanks have a great day and amazing project 🥇 🔝 🏆 !

maybe if this is possible it could be worth a template , like for server side rendering only (when client reload doesnt matter much)

@davedawkins
Copy link
Owner

Thank you for those very kind words!
I think I need to see an example of a server-side rendered project to understand how this might work. Do you have a small example you can share?

@jkone27
Copy link
Author

jkone27 commented Oct 28, 2021

my idea was a bit like Websharper, would also sutil be available to be used that way, directly from within aspnetcore without using fable or webpack just pure dotnet sutil libs, as from what i understood it doesn't rely on fable anymore for JS generation? 👍 thanks a lot a again and have a great day!

@davedawkins
Copy link
Owner

Sutil uses Fable to convert F# into JS. Fable no longer uses Babel, if that's what you mean?

@jkone27
Copy link
Author

jkone27 commented Nov 2, 2021

yes sorry , closing this as makes no sense. thank you!

@jkone27 jkone27 closed this as completed Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants