Skip to content
项目

关于

Bolero 将 Blazor 带给 F# 开发者,提供易于使用的 Model-View-Update 架构、HTML 组合器、热重载模板、类型安全的端点、高级路由和远程调用功能等。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
-1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Bolero - F# Tools for Blazor

Build Nuget

Bolero is a set of tools and libraries to run F# applications in WebAssembly using Blazor.

It includes:

  • HTML functions using a familiar syntax similar to WebSharper.UI or Elmish.React.
  • Templating to write HTML in a separate file and bind it to F# using a type provider.
  • Elmish integration: run an Elmish program as a Blazor component, and Blazor components as Elmish views.
  • Routing: associate the page's current URL with a field in the Elmish model, defined as a discriminated union. Define path parameters directly on this union.
  • Remoting: define asynchronous functions running on the server and simply call them from the client.
  • F#-specific optimizations: Bolero strips F# signature data from assemblies to reduce the size of the served application.

Getting started with Bolero

To get started, you need the following installed:

  • .NET SDK 10.0. Download it here.

Then, to create and run a sample application:

  • Install the Bolero project templates:

    dotnet new install Bolero.Templates
    
  • Create a new project:

    dotnet new bolero-app -o MyBoleroApp
    
  • Run it:

    cd MyBoleroApp
    dotnet run --project src/MyBoleroApp.Server
    

To learn more, you can check the documentation.

Contributing

Bolero welcomes contributions! If you wish to report issues, propose ideas, or submit pull requests, please use the issue tracker. See also the contributing guide to get started on working on this repository.

探索相关项目

加载中…