DRAGRI generates a Web page based on a specified template.
A template is an HTML file that provides the format of the content generated by DRAGRI or associated data.
Press the [...] button in the Template field in the [File]-[Save as Web Content] dialog to specify the directory containing the template.
The HTML file in the specified directory is read into DRAGRI and converted according to the created content.
![]() |
DRAGRI
|
![]() |
![]() ![]() |
>>> Converted according to the created content >>>
|
![]() ![]() |
![]() ![]() |
>>> Converted according to the created content >>>
|
![]() ![]() |
![]() ![]() |
>>> Copied >>>
|
![]() ![]() |
![]() ![]() |
>>> Copied >>>
|
![]() ![]() |
![]() ![]() |
>>> Copied >>>
|
![]() ![]() |
Some templates are provided in C:€Program Files€DRAGRI€template (if installed with default settings).
In addition to the provided templates, you can also use your own templates.
* An HTML file named index.html is required in the templates.
When character strings shown in the table below are found within the template HTML file, DRAGRI automatically replaces each character string with the corresponding numerical values, character strings or tags and outputs them as an HTML file.
All files with extension .html in the specified template folder are subject to processing.
$title$ | This is replaced with the name of a DRG file with its extension deleted. For example, if "stroll.drg" is the name of a content file, this part is replaced with "stroll." |
$applet$ | This is replaced with tags for placing a Java applet that plays the content. <applet ....>...</applet> |
$year$ | This is replaced with the year when the content was created. |
$month$ | This is replaced with the month when the content was created. |
$day$ | This is replaced with the day when the content was created. |
$width$ | This is replaced with the width of the content to be output. |
$height$ | This is replaced with the height of the content to be output. |
$$ | Enter $$ if you wish to use the character "$" in your web page. |
A template is converted as follows:
HTML source "index.html" | View with a browser |
<HTML> <HEAD> <TITLE>$title$</TITLE> </HEAD> <BODY> <DIV align=center> <IMG SRC="dance.gif"> <P> $title$ <P> $applet$ <P> Dance, Dance, Dance! <P> $year$/$month$/$day$ </DIV> </BODY> </HTML> |
![]() |
HTML source "index.html" | View with a browser |
<HTML> <HEAD> <TITLE>Dance,Dance,Dance</TITLE> </HEAD> <BODY> <DIV align=center> <IMG SRC="dance.gif"> <P> Miru Kiku Dance <P> <!-- start DRAGRI --><APPLET width=180 height=135 code="Dragri.class" archive="dragri.jar"> <PARAM NAME=PRELOAD VALUE=TRUE> <!-- <PARAM NAME=DIR VALUE="."> --> <PARAM NAME=BGCOLOR VALUE="FFFFFF"> <PARAM NAME=MESSAGE VALUE="DRAGRI Loading"> </APPLET><!-- end DRAGRI --> <P> Dance, Dance, Dance! <P> September 4, 2002 </DIV> </BODY> </HTML> |
![]() |