<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C3CEBF.FE313920">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hello,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Is it possible to use a variable value for <span
class=SpellE>metal<span class=GramE>:use</span></span>-macro. I have a site
that is using page templates and I have implemented a scheme that can have
different layouts. Each layout may have different skins. Layouts allow me to
have multiple site designs with the same basic elements and the same content,
but I can position elements such as the logo or menus in different places.
Layouts also allow me to use different methods for defining a layout, i.e.
tables for older browsers and layers for newer browsers. Each layer may have
different skins. A skin defines which graphical elements and <span
class=SpellE>css</span> file to use with a certain layout.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Ideally the layout and the skin for the layout would be
changeable by me or the visitor to the site. The functionality I want to have
is to support older browsers with a basic layout and support new browsers with
a more advanced layout, or having a layout geared to those with bad eyesight,
or allowing those with logins to choose their preferred layout and skin, or to change
the layout or skin of the entire site for basic design updates by changing a
variable.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>To start off with I just have two properties on the root
folder, layout and skin. I have two scripts, <span class=SpellE>get_skin</span>
and <span class=SpellE>get_layout</span>. Calling each returns the skin or
layout using the variables in the layout and skin properties. In the future I may
also check a session variable or perhaps a <span class=SpellE>querystring</span>
parameter for these values. Each page template in the site currently begins
with a <span class=SpellE>metal<span class=GramE>:use</span></span> statement
and so far the value is a static string. What I want to accomplish is to insert
a variable for the value. Everything I have tried thus far has failed to work.
Can you use statements in the metal directives that you can use in the <span
class=SpellE><span class=GramE>tal</span></span> directives? Does metal except string:
and python: combinations and how could I best insert a dynamic value for this directive
given a layout variable. Different pages use different templates within the
layout. I have a <span class=SpellE>frontpage</span> template, <span
class=SpellE>sub_page</span> template and <span class=SpellE>sub_page_index</span>
template.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&lt;html metal<span class=GramE>:use</span>-macro=&#8221;container/layouts/default/frontpage/macros/standard&#8221;&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&lt;div <span class=SpellE>metal<span class=GramE>:fill</span></span>-slot=&#8221;content&#8221;&gt;&lt;/div&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&lt;/html&gt;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The value for metal shown above consists of the layout
variable portion &#8216;container/layouts/default&#8217; and the static layout
template portion &#8216;/<span class=SpellE>frontpage</span>/macros/standard&#8217;.
How could I set the value of the <span class=SpellE>metal<span class=GramE>:use</span></span>-macro
directive to a string value containing the layout variable and a static string
portion as show above?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>David<o:p></o:p></span></font></p>

</div>

</body>

</html>