chloe: make self-closing tags support more idiomatic Factor
parent
bbc5fe4b5b
commit
512014a436
|
@ -99,9 +99,10 @@ CONSTANT: self-closing-tags {
|
||||||
string-context? get [ tag-not-allowed-here ] when ;
|
string-context? get [ tag-not-allowed-here ] when ;
|
||||||
|
|
||||||
: (compile-tag) ( tag -- )
|
: (compile-tag) ( tag -- )
|
||||||
dup name>string >lower self-closing-tags in?
|
dup name>string >lower self-closing-tags
|
||||||
[ compile-self-closing-tag ]
|
member? [
|
||||||
[
|
compile-self-closing-tag
|
||||||
|
] [
|
||||||
[ compile-start-tag ]
|
[ compile-start-tag ]
|
||||||
[ compile-children ]
|
[ compile-children ]
|
||||||
[ compile-end-tag ] tri
|
[ compile-end-tag ] tri
|
||||||
|
|
Loading…
Reference in New Issue