question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggestion: Feliz HTML View

See original GitHub issue

Would 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:open
  • Created 3 years ago
  • Reactions:4
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
sksallaj82commented, Aug 26, 2020

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.

2reactions
albertwoocommented, Jun 22, 2021

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

Read more comments on GitHub >

github_iconTop 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 >
HTML Smiley Emoji
Char Dec Hex 😀 128512 1F600 😁 128513 1F601 😂 128514 1F602
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found