Home
Products
MiniTemplator
DSP collection
ServletViewer
Snippets & Tips
Java
VBasic
VBScript
C#
C / C++
MS SQL Server
source-code.biz
Contact
Donate
About

MiniTemplator

MiniTemplator is a compact template engine for HTML files.

Features

What is a Template Engine?

Diagram

A template engine is a software module which is used to generate HTML pages (or other text files). The layout of a HTML page is defined within a template file, which can be designed by using a standard HTML editor like FrontPage. At run-time, the application program instructs the template engine to load the template, fill in variable values, repeat blocks and produce the final HTML page.

Why use a Template Engine?

The advantage of using a template engine, instead of embedding program code and HTML code, is:

Why use MiniTemplator?

What is special about MiniTemplator, compared to other template engines?

MiniTemplator Template Syntax

A simple syntax is used to define variables and blocks within the template. This syntax is compatible with HTML editors like FrontPage, but it can also be used for non-HTML files.

Variables:

${VariableName}

Blocks:

<!-- $BeginBlock BlockName -->
... block content ...
<!-- $EndBlock BlockName -->

Include a subtemplate:

<!-- $Include RelativeFileName -->

Java Version

Documentation

   API documentation (javadoc)

Example programs

 Example1: Program Template
(HTML code)
Output Page
(web page)
Output File
(HTML code)
 Example2: Program Template
(HTML code)
Output Page
(web page)
Output File
(HTML code)

Download

   MiniTemplator-java.zip (whole package, including API documentation and sample programs)

Source Code Repository

   Browse

   Subversion URL

PHP Version

Documentation

   API documentation (phpdoc)

Example programs

 Example1: Program Template
(HTML code)
Output Page
(web page)
Output File
(HTML code)
 Example2: Program Template
(HTML code)
Output Page
(web page)
Output File
(HTML code)

Download

   MiniTemplator_php.zip (whole package, including API documentation and sample programs)

Visual Basic (VB/VBA) Version

The VB-Version of the MiniTemplator is in VB6 format, but the VB-Module can also be used within a Microsoft-Access application, i.e. to produce static HTML pages from database content.

Documentation

   API documentation

Example programs

 Example1: Program Template
(HTML code)
Output Page
(web page)
Output File
(HTML code)
 Example2: Program Template
(HTML code)
Output Page
(web page)
Output File
(HTML code)

Download

   MiniTemplator_vbasic.zip (whole package, including API documentation and sample programs)

Support, Bug Reports, Feature Requests, Old Versions

SourceForge Project Page

Jars-Logo