ChifiSource / Toolips.jl

a manic web-development framework
https://toolips.app
MIT License
60 stars 1 forks source link

`style` as a special argument? #99

Closed emmaccode closed 7 months ago

emmaccode commented 1 year ago

I was thinking maybe the Component constructor should be able to take style as an argument and have toolips process such things. For example, I can provide a Vector{Pair} here...

julia> mydiv = div("mydiv", style = ["color" => "blue"])
Component{:div}("mydiv", Dict{Any, Any}(
:children => Servable[], :style => ["color" => "blue"]), Servable[], "div")

So we could simply have this be another special key which will turn this into a style string!