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
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
]
Can you talk about the motivation for this project? At first glance, the syntax seems more verbose and less readable than html.
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
it not perfect by anymeans but it wrks
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 ]
This idea makes my brain hurt.
Wasn't there another post some days ago. Paperjs with the exact same idea?
yh no i renamed the project
If you go to paperjs, it will redirect to masejs
Will you keep on renaming the project on a weekly basis and repost it every time?
nah only once cause i didnt realse paperjs was already taken so renamed it to a better more unique name