You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,23 @@
2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+
## [1.4.0] 2025-09-16
6
+
7
+
### Added
8
+
9
+
-`XmlNodeRenderer.renderFragment` to render template fragments based on `id` attribute lookup.
10
+
11
+
### Fixed
12
+
13
+
- Removed `XmlNode.NodeList`, `Elem.createFragment`, and `Elem.empty` to restore functionality, from 1.2.0 and correctly provide template fragment support.
14
+
5
15
## [1.3.0] 2025-09-09
6
16
7
17
### Added
8
18
9
-
-`XmlNode.NodeList` to represent HTML fragments.
10
-
-`Elem.createFragment` to create HTML fragments from a list of `XmlNode`.
11
-
-`Elem.empty` leverages `Elem.createFragment` and `XmlNode.NodeList` to represent an empty HTML fragment.
19
+
-(Reverted in 1.4.0) `XmlNode.NodeList` to represent [template fragments](https://htmx.org/essays/template-fragments/).
20
+
-(Reverted in 1.4.0) `Elem.createFragment` to create template fragments from a list of `XmlNode`.
21
+
-(Reverted in 1.4.0) `Elem.empty` leverages `Elem.createFragment` and `XmlNode.NodeList` to represent an empty template fragment.
12
22
13
23
## [1.2.0] 2025-06-26
14
24
@@ -28,7 +38,6 @@ All notable changes to this project will be documented in this file.
28
38
```
29
39
- Unified DSL module ensures backward compatibility while providing a cleaner syntax for new code.
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ renderHtml doc
31
31
- Should be simple, extensible and integrate with existing .NET libraries.
32
32
- Can be easily learned.
33
33
- Match HTML [spec](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference) as closely as possible.
34
+
- Support rendering full documents as well as fragments.
34
35
35
36
## Overview
36
37
@@ -47,7 +48,7 @@ Each of the primary modules can be access using the name directly, or using the
47
48
|`Elem`|`_h1 [] []`|
48
49
|`Attr`|`_class_ "my-class"`|
49
50
|`Text`|`_text "Hello world!"`|
50
-
|`Text` shortcuts |`_h1' "Hello world"`|
51
+
|`Text` shortcuts |`_h1' "Hello world"`(note the trailing apostrophe) |
51
52
52
53
53
54
```fsharp
@@ -336,6 +337,11 @@ let xmlDoc =
336
337
let xml = renderXml xmlDoc
337
338
```
338
339
340
+
## HTML Fragments
341
+
342
+
Sometimes you may want to create a fragment of HTML, without the surrounding `<html>`, `<head>` and `<body>` tags. Or, any wrapper element for that matter.
343
+
344
+
339
345
## SVG
340
346
341
347
Much of the SVG spec has been mapped to element and attributes functions. There is also an SVG template to help initialize a new drawing with a valid viewbox.
0 commit comments