[xml-code] ;
CHLOE: style
- dup "include" optional-attr [
- utf8 file-contents [ add-style ] [code-with]
- ] [
- compile-children>string [ add-style ] [code]
- ] ?if ;
+ [ "include" optional-attr ]
+ [ utf8 file-contents [ add-style ] [code-with] ]
+ [ compile-children>string [ add-style ] [code] ] ??if ;
CHLOE: write-style
drop [
] [xml-code] ;
CHLOE: script
- dup "include" optional-attr [
- utf8 file-contents [ add-script ] [code-with]
- ] [
- compile-children>string [ add-script ] [code]
- ] ?if ;
+ [ "include" optional-attr ]
+ [ utf8 file-contents [ add-script ] [code-with] ]
+ [ compile-children>string [ add-script ] [code] ] ??if ;
CHLOE: write-script
drop [
] when ;
: template-quot ( chloe -- quot )
- dup cached-template [ ] [
+ [ cached-template ] [
[ load-template dup ] keep
template-cache get set-at
- ] ?if quot>> ;
+ ] ?unless quot>> ;
: reset-cache ( -- )
template-cache get clear-assoc ;