On web templates the separation of concerns (content from presentation) require a low-level separation strategy to isolate template language from output language. Template syntax need special care with the "border" between languages, to avoid mixing and to supply scaping forms. There are well defined tags, marks or characteres, named"hooks", that intend to separate (compatibilize) the two languages. Types of hook: Script hooks: encloses blocks of developer-supplied program logic.

PropertyValue
dbpedia-owl:thumbnail
dbpprop:abstract
  • On web templates the separation of concerns (content from presentation) require a low-level separation strategy to isolate template language from output language. Template syntax need special care with the "border" between languages, to avoid mixing and to supply scaping forms. There are well defined tags, marks or characteres, named"hooks", that intend to separate (compatibilize) the two languages. Types of hook: Script hooks: encloses blocks of developer-supplied program logic. Sub-template hooks: to fix the frontiers of the sub-template block. Expression hooks: to encode scalar variables, sub-template references, or expressions. Note: formally, all template language need clear rules for "clean-up (or extract) the template language" from the output language. Hooks, scripts and expressions are extracted with the Clear(T) function. There are a height diversity of implemented styles for hook encoding, and there are also web template systems with options to reconfigure hooks. The listings below show the hooks styles used on the web template system's examples.
dbpprop:hasPhotoCollection
dbpprop:reference
rdfs:comment
  • On web templates the separation of concerns (content from presentation) require a low-level separation strategy to isolate template language from output language. Template syntax need special care with the "border" between languages, to avoid mixing and to supply scaping forms. There are well defined tags, marks or characteres, named"hooks", that intend to separate (compatibilize) the two languages. Types of hook: Script hooks: encloses blocks of developer-supplied program logic.
rdfs:label
  • Web template hook styles
owl:sameAs
skos:subject
foaf:depiction
foaf:page