html2purescript icon indicating copy to clipboard operation
html2purescript copied to clipboard

export variables

Open BebeSparkelSparkel opened this issue 5 years ago • 1 comments

I'm sure that you have considered this but I think it would be nice to allow for a syntax that allows for variables.

<div class=#{purescriptVariable}>
  <p>#{anotherPurscriptVariable}</p>
</div>
[ HH.div [ HP.class_ $ H.ClassName purescriptVariable ]
  [ HH.p_ [ HH.text anotherPurescriptVariable ] ]
]

BebeSparkelSparkel avatar Jul 20 '19 20:07 BebeSparkelSparkel

Good point! I suppose I only went as far as I needed to for my particular application at the time :) Feel free to fork / PR.

maackle avatar Jul 31 '19 16:07 maackle