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.