"font-family: " % % "; " % ;
: apply-style ( style key quot -- style gadget )
- >r over at r> when* ; inline
+ [ over at ] dip when* ; inline
: make-css ( style quot -- str )
"" make nip ; inline
stream>> stream-flush ;
M: html-stream stream-write1
- >r 1string r> stream-write ;
+ [ 1string ] dip stream-write ;
M: html-stream stream-write
- not-a-div >r escape-string r> stream>> stream-write ;
+ not-a-div [ escape-string ] dip stream>> stream-write ;
M: html-stream stream-format
- >r html over at [ >r escape-string r> ] unless r>
+ [ html over at [ [ escape-string ] dip ] unless ] dip
format-html-span ;
M: html-stream stream-nl