Releases: dotnet-websharper/ui
WebSharper UI 4.5.8
This is a minor release for WebSharper UI 4.5.
Features
- #207: Templating: add a new attribute
ws-preserve
. When an element is marked with this attribute, it and its children are not parsed for holes andws-*
attributes.
WebSharper.UI 4.5.6
This is a bugfix release for WebSharper UI 4.5.
Fixes
- #204 Compile-time error with
<ws-*>
references within a single file
WebSharper.UI 4.5.5
This is a minor release for WebSharper.UI 4.5. See the associated WebSharper release.
Features
- #175
<ws-*>
template instantiation is now implemented on the server side. - #200 Server-side templating:
Var<string>
holes are fully bound on the client side, including dynamically bound to${Text}
holes with the same name in the same template. - #201 Add dynamic holes for server-side templates. The method
.With("holeName", value)
now fills the given hole with the given value. An error is raised at runtime if the type ofvalue
is incompatible with the hole. - #201 Add
DynamicTemplate
as a non-provided type similar to the providedTemplate
, with the following differences:DynamicTemplate
is (for now) server-side only.DynamicTemplate
must be instantiated with a string argument.DynamicTemplate
holes can only be filled with.With()
.DynamicTemplate
instantiation can only be finished with.Doc()
.
Fixes
- #187 C# templating: the build task doesn't write the generated C# file if it would be identical to the existing file. This makes it possible to use a file system watcher such as
dotnet watch
without running into an infinite loop.
WebSharper.UI 4.5.4
This is a minor release for WebSharper.UI 4.5. See the associated WebSharper release.
Enhancements
- #182 Eliminate the last uses of jQuery:
parseHTML
in templating andDoc.Verbatim
, andon
inInput.Keyboard
. - #195: Add
V
-enabledAttr.Prop
overload.
Fixes
- #190 C# templating: generate full namespace for
CheckedInput
. - #194: Ensure
Router.Install
andRouter.InstallInto
initialize their state from the current URL. - #198 Ensure
Elt.OnAfterRender()
depends onOnAfterRenderControl
for the Sitelet runtime to include the correct.js
link needed. - #199 Don't double-encode generated event attributes, causing server-defined event handlers to fail on .NET core.
WebSharper.UI 4.5.3
This is a bugfix release for WebSharper.UI 4.5. See the associated WebSharper release.
Fixes
WebSharper.UI 4.5.2
This is a minor release for WebSharper.UI 4.5. See the associated WebSharper release.
Features
- #192 Add the ability to instantiate a template from a string on the server side.
WebSharper.UI 4.5.1
This is a minor release for WebSharper.UI 4.5. See the associated WebSharper release.
Features
- #188: Add overloads for
Map<'K, 'V>
forView.MapSeqCached
andView.DocSeqCached
.
WebSharper UI 4.5
This is a major release for WebSharper UI 4. See the associated WebSharper release.
Features and breaking changes
-
#183: [F#] In order to minimize the number of upcasts needed in user code, the following functions now return values of type
Doc
instead ofElt
:- Functions in the module
WebSharper.UI.Html
, such asdiv
,span
, etc. - Functions in the module
WebSharper.UI.Html.Tags
, such asoption
,object
, etc. - Functions in the module
WebSharper.UI.Html.SvgElements
, such asg
,rect
, etc. - Functions in the module
WebSharper.UI.Client.Doc
, such asInput
,Button
, etc.
For users who do need values of type
Elt
, the following were added:- A new module
WebSharper.UI.Html.Elt
, containingElt
-returning equivalents to the functions inWebSharper.UI.Html
andWebSharper.UI.Html.Tags
. - A new module
WebSharper.UI.Html.SvgElements.Elt
, containingElt
-returning equivalents to the functions inWebSharper.UI.Html.SvgElements
. - A new module
WebSharper.UI.Client.Elt
, containingElt
-returning equivalents to the functions inWebSharper.UI.Client.Doc
.
- Functions in the module
Fixes
WebSharper.UI 4.4.1
This is a bugfix release for WebSharper.UI 4.4. See the associated WebSharper release.
Improvements
- #181
Elt.WithAttrs
is no longer public, it was intended to be internal. - #181
Elt.RemoveClass
removes unneeded spaces fromclass
attribute value. - #182
jQuery
is now not used internally forElt.AddClass
/RemoveClass
andRouter.Install
/InstallInto
. - #184 In sitelets using a template with
ClientLoad.FromDocument
, when outputting aws-replace
tag, make the tag name depend on the parent tag (eg if the parent is<tbody>
, output<tr>
) instead of always<div>
, so that the HTML is parsed correctly
WebSharper.UI 4.3
This is a feature release of WebSharper.UI. See the associated WebSharper release.
Features
-
Enable the templating type provider to run on the new .NET Core-compiled WebSharper compiler (see the WebSharper release notes above).
-
#180: F# templating: it is now possible to use
.V
directly inside astring
-typed hole or aws-var
hole.<input ws-var="FirstName" /> <div>${LastName}</div>
type Name = { First: string; Last: string } let myVar = Var.Create { First = "John"; Last = "Doe" } let myDoc = MyTemplate() .FirstName(myVar.V.First) // .V lensing into a Var<string> .LastName(myVar.V.Last) // .V mapping into a View<string> .Doc()