Template
Templates are used, for example, in the field of programming. The great advantage of template programming is that a program code can be used again and again. The programming language C++ has template language elements. The templates are used in the C++ standard library for the implementation of generic algorithms or for the supply of containers (e.g. lists). With the concept of the templates in the programming language C++ whole templates and schemes of functions and classes can be reused. There are function templates and class templates. A function template behaves thereby like a normal function. It can take arguments of different types or return different return types. Templates can also be used for classes. For an even more efficient implementation there is the possibility to specialize templates. With a specialization a separate implementation of function and class templates takes place. Beyond that the possibility exists to treat a special case within a template. This takes place with a partial specialization.
Template in the data processing
Templates are used in data processing for the creation of documents or document parts. The template is a framework that prescribes the structure and content of a document. These templates are then completed to a complete document by inserting the missing elements. It is also possible to use a template for a source file. The user receives structure and sequence for the recurring language elements within the source file. This makes the creation of new modules easier and faster.
Web template
A web template can be used to create a dynamic website. The templates are used for the development of professional web pages even without graphic knowledge. The web templates can also be edited with image editing programs and HTML editors and adapted to individual needs. In most cases, these templates are integrated via HTML. A web template can also be a prefabricated web page, which consists of several building blocks and thus forms the framework for content management systems. If the web templates are used for content management systems, this has the advantage that the web pages can be maintained inexpensively and very easily and quickly adapted to new situations.
URL template
A URL template is a template for the development of URLs with a common basic structure. The template contains one or more parameters. These parameters have to be replaced by values in order to create a concrete URL. In most cases, the parameters are enclosed in a curly bracket {}. If a URL is constructed, the parameter values used must be URL-encoded. Depending on the use case, encoding is only necessary for parameters in the query string.