Suggestion: Feliz HTML View
See original GitHub issueWould it be possible to make Feliz HTML view an option ?
Html.h1 42
Html.div "Hello there!"
Html.div [ Html.h1 "So lightweight" ]
Html.ul [
Html.li "One"
Html.li [ Html.strong "Two" ]
Html.li [ Html.em "Three" ]
]
https://zaid-ajaj.github.io/Feliz/#/Feliz/Syntax
instead of the current “more verbose”
let myElement name =
div [] [
h1 [] [text "My app"]
p [] [textf "Hello %s and welcome to my app!" name]
]
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Feliz
Discoverable attributes with no more functions, Html attributes or css properties globally available so they are easy to find. Proper documentation: each ...
Read more >Looking for an HTML template engine in F# with faster file ...
I've been using Feliz.ViewEngine for generating static HTML pages but dotnet watch is too slow for my taste. ... Thanks for the suggestion....
Read more >Feliz Town in Jeju - See 2023 Prices
Hotel deals on Feliz Town in Jeju. See 2023 prices. Book online now - with your phone. 24/7 customer support.
Read more >THE 10 BEST Porto Feliz Hotel Deals (Aug 2023)
See Tripadvisor's Porto Feliz, Brazil - Sao Paulo hotel deals and special prices all in one spot. ... Clear all filters or view...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m not sure if that’s something I would even want. Is Feliz really less verbose? I see two different examples as a form of comparison, and I’m seeing that “Html.” is mandatory before each element, which seems more verbose. I think there would have to be more proof or a better pitch to help realize if anything needs to be changed syntactically. I do like some of the aesthetics in certain areas in Feliz, but Bolero seems fine in the way it’s been evolving.
I am experimenting this kind of project: https://github.com/slaveOftime/Fun.Blazor
I made couple of helper functions like html.inject to create a component and inject service like ComponentHook which can manage observable state and lifecycle event and no elmish style needed. Of course we like elmish we can still use elmish style model. I also made an html.watch to check the state of chanages and only rerender if some data changed.
Just for fun now, not production ready 😂
Here is a docs link: https://funblazor.slaveoftime.fun/helper-functions