Introduction

Xmark supports two languages asp and php, and mutually compatible.

Installation

The file xmark1.1.asp/xmark1.1.php is the core program file, first you must include this file, and then define your own marks and templates. eg:

asp code (default.asp)
{@Replace(<,<)}
<%
Dim Xmark

Set Xmark = New CXmark
Xmark.Name = ".."

Xmark.Item("$Hello") = "Hello World!"

Xmark.Item("@Hello") = "ParseHello"
Function ParseHello(pars)
	ParseHello = "Hello World!"
End Function

Xmark.Show()
Set Xmark = Nothing
%>{/Replace}


php code (default.php)
{@Replace(<,<)}name = '..';

$Xmark->item('$Hello', 'Hello World!');

$Xmark->item('@Hello', 'parseHello');
function parseHello($pars){
	return 'Hello World!';
}

$Xmark->show();
$Xmark = null;
?>{/Replace}


template code (default.html)
{@Replace(<,<)}{$Hello}
{@Hello()/}{/Replace}