New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ease syntax for server-client bridge in markup #240
Comments
More thoughts we should take into consideration:
Based on these, I think the following makes most sense:
|
@granicz ClientSideLinq is for C# use, already aliased for C# as |
@Jand42 This ticket is not about who uses those functions but from where. There is now a separate place for mixed-tier functions, and |
|
* #240 Xml doc * fix up comments * Update Doc.fsi * Tamed the XMLDOC comments on `ClientServer.*` somewhat. Still pretty technical. * XMLDOC on the enclosing type too Co-authored-by: András Jankó <andras.janko@gmail.com> Co-authored-by: Adam Granicz <adam.granicz@gmail.com>
When constructing server-side HTML with dynamic, client-side content/functionality, we rely on
client
/clientSide
/Doc.Hydrate
to embed client-side content, and historically we required explicit quotations<@ ... @>
around the client-side expression. The reasoning was "to mark the server-client bridge so it stands out."This ticket is to extend the API to allow for variants of the above functions not to require explicit quotations, as to remove the "strangeness" factor associated with the quotation symbols.
Given F#'s current limitation of having auto-quotation available only on members of a type, one proposal would be to make these functions available as
Doc.Client
,Doc.ClientSide
(already "there" but needs to a member, filed as #239), andDoc.Hydrate
(already there).The text was updated successfully, but these errors were encountered: