furnace.chloe-tags: fix t:a, t:atom, t:form tags after recent Chloe change
parent
aaace74616
commit
ad939e01f1
|
@ -49,7 +49,7 @@ IN: furnace.chloe-tags
|
||||||
} cleave [ a-url ] [code] ;
|
} cleave [ a-url ] [code] ;
|
||||||
|
|
||||||
CHLOE: atom
|
CHLOE: atom
|
||||||
[ compile-children>string ] [ compile-a-url ] bi
|
[ compile-children>xml-string ] [ compile-a-url ] bi
|
||||||
[ add-atom-feed ] [code] ;
|
[ add-atom-feed ] [code] ;
|
||||||
|
|
||||||
CHLOE: write-atom drop [ write-atom-feeds ] [code] ;
|
CHLOE: write-atom drop [ write-atom-feeds ] [code] ;
|
||||||
|
@ -73,7 +73,7 @@ CHLOE: write-atom drop [ write-atom-feeds ] [code] ;
|
||||||
CHLOE: a
|
CHLOE: a
|
||||||
[
|
[
|
||||||
[ a-attrs ]
|
[ a-attrs ]
|
||||||
[ compile-children>string ] bi
|
[ compile-children>xml-string ] bi
|
||||||
[ <unescaped> [XML <a><-></a> XML] second swap >>attrs ]
|
[ <unescaped> [XML <a><-></a> XML] second swap >>attrs ]
|
||||||
[xml-code]
|
[xml-code]
|
||||||
] compile-with-scope ;
|
] compile-with-scope ;
|
||||||
|
@ -120,7 +120,7 @@ CHLOE: form
|
||||||
[
|
[
|
||||||
[ compile-form-attrs ]
|
[ compile-form-attrs ]
|
||||||
[ hidden-fields ]
|
[ hidden-fields ]
|
||||||
[ compile-children>string ] tri
|
[ compile-children>xml-string ] tri
|
||||||
[
|
[
|
||||||
<unescaped> [XML <form><-><-></form> XML] second
|
<unescaped> [XML <form><-><-></form> XML] second
|
||||||
swap >>attrs
|
swap >>attrs
|
||||||
|
|
|
@ -133,9 +133,12 @@ ERROR: unknown-chloe-tag tag ;
|
||||||
: process-children ( tag quot -- )
|
: process-children ( tag quot -- )
|
||||||
[ [ compile-children ] compile-quot ] [ % ] bi* ; inline
|
[ [ compile-children ] compile-quot ] [ % ] bi* ; inline
|
||||||
|
|
||||||
|
: compile-children>xml-string ( tag -- )
|
||||||
|
[ with-string-writer ] process-children ;
|
||||||
|
|
||||||
: compile-children>string ( tag -- )
|
: compile-children>string ( tag -- )
|
||||||
t string-context? [
|
t string-context? [
|
||||||
[ with-string-writer ] process-children
|
compile-children>xml-string
|
||||||
] with-variable ;
|
] with-variable ;
|
||||||
|
|
||||||
: compile-with-scope ( quot -- )
|
: compile-with-scope ( quot -- )
|
||||||
|
|
Loading…
Reference in New Issue