IntelliFactory

Bolero 0.3 released with HTML template hot reloading

websharper
By Loïc Denuzière on Wednesday, February 13, 2019 — 2 comments

We are happy to announce the release of Bolero version 0.3. Bolero is a library that enables writing full-stack applications in F#, whose client side runs in WebAssembly using Blazor.

Install the latest project template with:

1
dotnet new -i Bolero.Templates

HTML Hot reloading

Version 0.3 brings HTML hot reloading to Bolero. You can now run your application in debug mode and see changes to your HTML templates instantly.

Hot reloading in action

Hot reloading works both in client-side mode (WebAssembly) and in server-side mode. When in client-side mode, it still requires a server to be present: file changes are propagated to the application via SignalR.

Hot reloading is enabled by default in projects created with Bolero.Templates 0.3. You can opt out by calling:

1
dotnet new bolero-app --hotreload=false

To add hot reloading to an older project, or if you opted out when creating your project, check the documentation to learn how to add it. It requires adding NuGet packages and a bit of code to both the client-side and the server-side projects.

Happy coding!