Skip to content

WebSharper.UI 4.5.5

Compare
Choose a tag to compare
@Tarmil Tarmil released this 30 Oct 17:39
· 312 commits to master since this release

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 of value is incompatible with the hole.
  • #201 Add DynamicTemplate as a non-provided type similar to the provided Template, 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.