We are happy to announce the release of WebSharper.UI 4.2.4.
This is a minor feature release of WebSharper.UI, out-of-band from WebSharper.
Features
#163 Allow using the
on.afterRenderattribute, theElt.OnAfterRender()method and thews-onafterrendertemplate hole from the server side just like other event handlers.#165 Add variadic overload for
AttrandDoc-typed hole instantiation. For example, the following:MyTemplate() .Body( [ h1 [] [text "Hello!"] p [] [text "Welcome to my page."] ] ) .Doc()can now be written as:
MyTemplate() .Body( h1 [] [text "Hello!"], p [] [text "Welcome to my page."] ) .Doc()
Fixes
- #138 Fix an exception thrown when editing a template file while the application is running and
serverLoadis set toServerLoad.WhenChanged.
Happy coding!