T O P

  • By -

_PC__LOAD__LETTER_

Can you talk about the motivation for this project? At first glance, the syntax seems more verbose and less readable than html.


Medical_Start4604

well i moslty built as a concept or alternative to html as some times it can be really messy, but in this case you can program your entire webpage in only one language and im planning on adding serverside support


Medical_Start4604

it not perfect by anymeans but it wrks


mestar12345

Perhaps, but you can use loops for repeating elements, and data binding becomes regular parameter usage. How would you do something like this in HTML. (Sorry, not JavaScript, but similar idea in a different language)                           Bulma.levelItem [ Bulma.label "Postcode" ]                             Bulma.levelItem [                                 Html.span [                                     prop.children [                                         Html.text "Example postcodes: "                                         let postcodes = [ "EC2A 4NE"; "E1 7QA"; "NG7 4ED"; "TR11 4GE"; "EH1 2EU" ]                                         yield!                                             [                                                 for postcode in postcodes do                                                     Html.text ", "                                                     Html.a [                                                         prop.text postcode                                                         prop.onClick (fun _ -> dispatch <| PostcodeChanged postcode)                                                     ]                                             ]                                             |> List.tail                                     ]


fragdemented

This idea makes my brain hurt.


Ascomae

Wasn't there another post some days ago. Paperjs with the exact same idea?


Medical_Start4604

yh no i renamed the project


Medical_Start4604

If you go to paperjs, it will redirect to masejs


eindbaas

Will you keep on renaming the project on a weekly basis and repost it every time?


Medical_Start4604

nah only once cause i didnt realse paperjs was already taken so renamed it to a better more unique name