FSharp.ViewEngine
2025.9.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package FSharp.ViewEngine --version 2025.9.0
NuGet\Install-Package FSharp.ViewEngine -Version 2025.9.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FSharp.ViewEngine" Version="2025.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FSharp.ViewEngine" Version="2025.9.0" />
<PackageReference Include="FSharp.ViewEngine" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FSharp.ViewEngine --version 2025.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FSharp.ViewEngine, 2025.9.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package FSharp.ViewEngine@2025.9.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FSharp.ViewEngine&version=2025.9.0
#tool nuget:?package=FSharp.ViewEngine&version=2025.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FSharp.ViewEngine
View engine for F#. Inspired by Giraffe.ViewEngine and Feliz.ViewEngine.
Installation
Add the core view engine package.
dotnet add package FSharp.ViewEngine
Usage
open FSharp.ViewEngine
open type Html
open type Htmx
open type Alpine
html [
_lang "en"
_children [
head [
title "Test"
meta [ _charset "utf-8" ]
link [ _href "/css/compiled.css"; _rel "stylesheet" ]
]
body [
_xData "{showContent: false}"
_class "bg-gray-50"
_children [
div [
_id "page"
_class [ "flex"; "flex-col" ]
_children [
h1 [ _hxGet "/hello"; _hxTarget "#page"; _children "Hello" ]
h1 [ _hxGet "/world"; _hxTarget "#page"; _children "World" ]
]
]
br
div [
_xShow "showContent"
_children [
h2 [ _children "Content" ]
p [ _children "Some content" ]
ul [
_children [
li [ _children "One" ]
li [ _children "Two" ]
]
]
]
]
]
]
]
]
|> Element.render
<!DOCTYPE html>
<html lang="en">
<head>
<title>Test</title>
<meta charset="utf-8">
<link href="/css/compiled.css" rel="stylesheet">
</head>
<body x-data="{showContent: false}" class="bg-gray-50">
<div id="page" class="flex flex-col">
<h1 hx-get="/hello" hx-target="#page">Hello</h1>
<h1 hx-get="/world" hx-target="#page">World</h1>
</div>
<br>
<div x-show="showContent">
<h2>Content</h2>
<p>Some content</p>
<ul>
<li>One</li>
<li>Two</li>
</ul>
</div>
</body>
</html>
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- FSharp.Core (>= 8.0.403)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on FSharp.ViewEngine:
| Package | Downloads |
|---|---|
|
FSharp.ViewEngine.Alpine
Package Description |
|
|
FSharp.ViewEngine.Html
Package Description |
|
|
FSharp.ViewEngine.Htmx
Package Description |
|
|
FSharp.ViewEngine.Svg
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2026.2.5 | 144 | 2/28/2026 |
| 2026.2.4 | 92 | 2/28/2026 |
| 2026.2.3 | 89 | 2/26/2026 |
| 2026.2.2 | 129 | 2/9/2026 |
| 2026.2.1 | 116 | 2/7/2026 |
| 2026.2.0 | 98 | 2/6/2026 |
| 2025.9.1 | 353 | 9/24/2025 |
| 2025.9.0 | 202 | 9/23/2025 |
| 2024.3.0 | 685 | 3/14/2024 |
| 2023.10.0 | 529 | 10/14/2023 |
| 2023.9.1 | 323 | 9/21/2023 |
| 2023.9.0 | 362 | 9/10/2023 |
| 2023.8.1 | 382 | 8/24/2023 |
| 2023.8.0 | 387 | 8/7/2023 |
| 2023.5.2 | 411 | 5/13/2023 |
| 2023.5.1 | 395 | 5/12/2023 |
| 2023.5.0 | 395 | 5/11/2023 |
| 0.1.0 | 600 | 5/10/2023 |