Handbook
Glossary
optional-attr ( tag name -- value )
Furnace framework
»
Furnace presentation layer
»
Chloe templates
»
Extending Chloe
»
Extending Chloe with custom tags
Prev:
required-attr ( tag name -- value )
Next:
compile-attr ( value -- )
Vocabulary
html
.
templates
.
chloe
.
syntax
Inputs
tag
a
tag
name
a
string
Outputs
value
a
string
or
f
Word description
Extracts an attribute from a tag.
Notes
Outputs
f
if the attribute is not specified.
Definition
USING:
xml.data
;
IN:
html.templates.chloe.syntax
:
optional-attr
( tag name -- value )
chloe-name
attr
;