Concept

Générateur de site statique

Résumé
A web template system in web publishing allows web designers and developers work with web templates to automatically generate custom web pages, such as the results from a search. This reuses static web page elements while defining dynamic elements based on web request parameters. Web templates support static content, providing basic structure and appearance. Developers can implement templates from content management systems, web application frameworks, and HTML editors. A web template system is composed of the following: A template engine: the primary processing element of the system; Content resource: any of various kinds of input data streams, such as from a relational database, XML files, LDAP directory, and other kinds of local or networked data; Template resource: web templates specified according to a template language; The template and content resources are processed and combined by the template engine to mass-produce web documents. For purposes of this article, web documents include any of various output formats for transmission over the web via HTTP, HTTPS, or another Internet protocol. With the model typically held in a relational database, the remaining components of the MVC architecture are the control and view. In the simplest of systems these two are not separated. However, adapting the separation of concerns principle one can completely decouple the relationships. For example, the view template may look like this: Sites Then, the control template loads the view, and then uses XPath addressing to insert components from a database, for instance: preserveWhiteSpace = false; doc>Load(view.html);doc->Load('view.html'); titlenode = doc>createTextNode("Likethis");doc->createTextNode("Like this"); xpath = new DOMXPath(doc);doc); xpath->registerNamespace("h", "http://www.w3.
À propos de ce résultat
Cette page est générée automatiquement et peut contenir des informations qui ne sont pas correctes, complètes, à jour ou pertinentes par rapport à votre recherche. Il en va de même pour toutes les autres pages de ce site. Veillez à vérifier les informations auprès des sources officielles de l'EPFL.