Boilerplate support
Furnace framework » Furnace presentation layer » HTML template interface

Prev:template-convert ( template output -- )


The following words define the interface between a templating engine and the furnace.boilerplate vocabulary.

The master/child template interface follows a pattern where for each concept there is a word called by the child to store an entity, and another word to write the entity out; this solves the problem where certain HTML tags, such as <title> and <link> must appear inside the <head> tag, even though those tags are usually precisely those that the child template will want to set.
set-title ( string -- )

write-title ( -- )

add-style ( string -- )

write-style ( -- )

add-atom-feed ( title url -- )

write-atom-feeds ( -- )


Processing a master template with a child:
with-boilerplate ( child master -- )

call-next-template ( -- )