GTML is an HTML pre-processor which adds some extra features specially designed for maintaining multiple Web pages.
From GTML documentation: Where's GTML.
The home page ofGTMLis athttp://www.lifl.fr/~beaufils/gtml/, and archives may be found atftp://ftp.lifl.fr/pub/users/beaufils/gtml/.
#define VERSION $Id: gtml.gtml 3768 2005-07-25 23:47:33Z nthx $
#define TITLE Tomasz Nazar - GTML Tool
#include "inc-header.gtml"
<div class="back">
<div class="section" id="gtml">
<h2>GTML</h2>
<dl>
<dt>What is GTML?</dt>
<dd>
GTML is a tool for helping with generation of web pages.
I use it for that.
...
</dd>
...
<dt>Is there any documentation about it?</dt>
<dd>
I got it with tool's sources :)
</dd>
<dt>What's the philosophy?</dt>
<dd>
The philosophy is that you write your html files
...
</dd>
</dl>
</div>
</div>
#include "inc-footer.gtml"
#define MOVIE_TITLE Two Towers / 2CD
<p>
My favourite movie is <<MOVIE_TITLE>>
15:08:05$~/public_html> gtml sample.gtml
--- sample.gtml ---
15:08:07$~/public_html>
HTML Source (out): [sample.html]
<p>
My favourite movie is Two Towers / 2CD
define INCLUDE_PATH includes/
definechar <{ <i>
definechar }> </i>
definechar <url> <<url(
definechar </url> )>>
define url(url,text) <a href="url">text</a>
//...
filename HOME index-new.gtml
filename GTML html/gtml.gtml
filename ANT java/ant.gtml
filename ANT_PL java/ant_pl.gtml
filename CSS_OLDSTYLE css/core/Oldstyle.css
filename IMG_POLISH_VER images/pl.png
filename IMG_ENGLISH_VER images/gb.png
//and <<HOME>> in java/ant.gtml will be replaced
//to: ../index-new.html in java/ant.html
//....
hierarchy
//^^ important
//...
These are (my own) GTML tags and commands:
#define VERSION $Id: gtml.gtml 3768 2005-07-25 23:47:33Z nthx $ #define TITLE Tomasz Nazar - Ant tutorial [English] #define KEYWORDS ant tutorial English basic advanced tasks #define CREATED_WITH_GIMP #define HTML_VALIDATED #include "inc-header.gtml" <h1>Ant tutorial</h1> <iurl><<ANT>>,English version,<<IMG_ENGLISH_VER>></iurl> | <iurl><<ANT_PL>>,Wersja Polska,<<IMG_POLISH_VER>></iurl> <h2>Contents</h2> <dl> <dt>What is the design of Ant?</dt> <dd> The root of XML file is a <[project]> tag. It consists of several <{targets}>. Each <[target]> consists of several <{tasks}>. <br/> ... <url>http://jakarta.apache.org/ant, original documentation</url> Here are some examples: <br/> #include "inc-footer.gtml"