WebMetaLecture - a lecture about Website Meta LanguageExample 4 : Frames-Enabled and Non-Frames-Enabled SitesThe Modified Template

8.3. The Modified Template

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

The Modified Template

<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">

<define-tag navbarlink>
    ;;; Determine if %0 matches this document
    <ifeq "$(FILENAME)" "%0"
        <ifeq "$(FILENAME)" "%0index.html"

    ;;; If so - bolds the text
    ;;; If not - makes a hyperlink
    "<a href="$(ROOT)/%0">%1</a>"
/><br />

#include 'navbar.wml'

<br />
<a href="$(ROOT)/frames.html">Frames Enabled Site</a><br />

<td class="main">


The Modified Template




<define-tag subject>


#   per default we are in body


Written by Shlomi Fish