]> gitweb.factorcode.org Git - factor.git/blob - basis/html/templates/fhtml/fhtml-docs.factor
e775651cbca6c9c0979394ab089d46988421c606
[factor.git] / basis / html / templates / fhtml / fhtml-docs.factor
1 IN: html.templates.fhtml
2 USING: help.markup help.syntax ;
3
4 HELP: <fhtml>
5 { $values { "path" "a pathname string" } { "fhtml" fhtml } }
6 { $description "Creates an FHTML template descriptor." } ;
7
8 ARTICLE: "html.templates.fhtml" "FHTML templates"
9 "The " { $vocab-link "html.templates.fhtml" } " vocabulary implements a templating engine which mixes markup with Factor code."
10 $nl
11 "FHTML provides an alternative to " { $vocab-link "html.templates.chloe" } " for situations where complex logic must be embedded in the presentation layer of a web application. While this is discouraged for larger applications, it is useful for prototyping as well as simpler applications."
12 $nl
13 "The entire syntax of an FHTML template can be summarized as thus: text outside of " { $snippet "<%" } " and " { $snippet "%>" } " is rendered literally. Text inside " { $snippet "<%" } " and " { $snippet "%>" } " is interpreted as Factor source code."
14 { $subsection <fhtml> } ;
15
16 ABOUT: "html.templates.fhtml"