Web Template Article Index for
Web
Website Links For
Web
 

Information About

Web Template




Content on websites need updating and standardization. A news website, for example, need daily updating and each updated news will be contextualized by a standard layout and standard page-location. A strategy to automatise this standardization is:
# conceive the website with a Template Engine (template processor);
# specify the standards through a ''web templates'';
# apply to each ''updated content'', from a same standard, to the ''template engine'', with your ''web template''.

are a good examples: the wikipedia on-line software is the template engine, and a specfic template (the web template) is used into a set of articles (the context).




BASIC CONCEPTS


  • substitution process;

  • moment of the process: before or after/during the "request for view";

  • --- process after: is a Transclusion

  • --- process before: is a classical "macro-substitution" on text edictors and pre-processors (from programming languages).

  • variable (name and content)

  • logic (encapsulating process).

  • web page




KINDS OF WEB TEMPLATES

There are many kinds of web templates: from simple "substitute template" (masks), where the single-place-variables are substituted by a web designer's content, to complex template schemas based on XSLT .

"Complex templates" plays an important role in Content Management System (CMS)
and Web Publishing in general.
They make possible a standardized layout (page arranging, colors, positions, etc.)
for different contents while using the same basic layout.

Usually a "substitute template" will include most of the source files necessary for further customizing the template using most modern WYSIWYG editors such as Macromedia Dreamweaver , BlueFish , Amaya or FrontPage , or in plain text editors such as Notepad or VIM .




From Template Engine production perspective:
  • ''Templates for acts on HTML code for simplify the webdesigner's work. Some CMS , that save content on static pages, and HTML web-design tools (like Dreamwaver) area examples.

  • --- Pré-processing inclusions and substituions.

  • ''Templates for acts on-line, change when input-data changes.

  • --- On-line processing Transclusions .


From Webdesigners page perspective:
  • ''All-page template'': all the page layout are a single template. It can used as a "general layout background" (mask) for a "entire-content" variable.

  • ''Block template'': only a part (segment, component) of the page is the template-layout block.


From Algorithm perspective:
  • ''Substitute templates'': only substitute the names from a "from-name to-content" table, and substitute those that occurs on the template.

  • --- Variable syntax

  • ''Complex templates'': (parse/evaluation logic template) have the possibility to add logic on the template it self. Permit do a "if-then-else" on the substitution.

  • --- Template language.


From webdesigners/web-programmers relationship perspective:
  • '' MVC -dependent strategies''.

  • ''Other strategies''.