Handbook
Glossary
compile-attr ( value -- )
Furnace framework
»
Furnace presentation layer
»
Chloe templates
»
Extending Chloe
»
Extending Chloe with custom tags
Prev:
optional-attr ( tag name -- value )
Next:
tag-stack
Vocabulary
html
.
templates
.
chloe
.
compiler
Inputs
value
an attribute value
Outputs
None
Word description
Compiles code which pushes an attribute value previously extracted by
required-attr
or
optional-attr
on the stack. If the attribute value begins with
@
, compiles into code which pushes the a form value.
Definition
USING:
html.forms
kernel
make
present
splitting
;
IN:
html.templates.chloe.compiler
:
compile-attr
( value -- )
reset-buffer
"@"
?head
[
,
[
value
present
]
%
]
[
,
]
if
;