WebMetaLecture - a lecture about Website Meta LanguageExample 2 : Bolding the NavBar entry of the Existing PageThe New Template File

6.1. The New Template File

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US">

The New Template File

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="StyleSheet" href="$(ROOT)/style.css" type="text/css" />

<table class="layout">
<td class="navbar">
<ifneq "$(FILENAME)" "index.html"
    "<a href="$(ROOT)/">Main</a>"
<br />
<ifneq "$(FILENAME)" "download.html"
    "<a href="$(ROOT)/download.html">Download</a>"
<br />
<ifneq "$(FILENAME)" "links.html"
    "<a href="$(ROOT)/links.html">Links</a>"
<br />

<br />

<a href="mailto:webmaster@mysite.org">Webmaster</a><br />
<td class="main">

The New Template File




<define-tag subject>


#   per default we are in body


<ifneq ...> compares its first two arguments - if they are not equal, it expands to its third argument, else it expands to its fourth. There's also <ifeq ... >.

Written by Shlomi Fish