<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>templates:tags:use_macro[ Search for &quot;&quot;]</title>
        <description></description>
        <link>http://xataface.com/wiki/index.php?-action=single_record_search&amp;-table=wiki&amp;page_id=%3D24&amp;-cursor=0&amp;-skip=0&amp;-limit=30&amp;-mode=list&amp;--subsearch=</link>
        <lastBuildDate>Sat, 18 May 2013 09:19:11 +0100</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>templates:tags:use_macro</title>
            <link>http://www.xataface.com/wiki/templates:tags:use_macro</link>
            <description>&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Field&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page name&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;templates:tags:use_macro&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page id&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;24&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Page title&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;templates:tags:use_macro&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Content&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;
&lt;h2 id=&quot;toc0&quot;&gt;use_macro Template Tag&lt;/h2&gt;

&lt;h3 id=&quot;toc1&quot;&gt;Synopsis&lt;/h3&gt;
&lt;p&gt;The use_macro tag includes another template into the current template with the option to override certain sections.&lt;/p&gt;


&lt;h3 id=&quot;toc2&quot;&gt;Parameters&lt;/h3&gt;


&lt;table class=&quot;listing listing2&quot;&gt;
    &lt;tr&gt;
        &lt;th&gt; Name&lt;/th&gt;
        &lt;th&gt; Description&lt;/th&gt;
        &lt;th&gt; Version&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt; file&lt;/td&gt;
        &lt;td&gt; The path the template to include (within the templates directory).&lt;/td&gt;
        &lt;td&gt; 0.6&lt;/td&gt;
    &lt;/tr&gt;
&lt;/table&gt;


&lt;h3 id=&quot;toc3&quot;&gt;Example&lt;/h3&gt;
&lt;p&gt;In this example we will create a template for a user profile, but this template will include a slot that can be overridden by other templates to customize the user bio.&lt;/p&gt;


&lt;h4 id=&quot;toc4&quot;&gt;user-profile.html&lt;/h4&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;User profile&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
   &amp;lt;h1&amp;gt;User bio&amp;lt;/h1&amp;gt;
   &amp;lt;div id=&amp;quot;bio&amp;quot;&amp;gt;
   {define_slot name=&amp;quot;bio&amp;quot;}
        This text will be overridden by other templates to place the correct
        bio information.
   {/define_slot}
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/code&gt;&lt;/pre&gt;


&lt;h4 id=&quot;toc5&quot;&gt;steve-profile.html&lt;/h4&gt;

&lt;pre&gt;&lt;code&gt;{use_macro file=&amp;quot;user-profile.html&amp;quot;}
    {fill_slot name=&amp;quot;bio&amp;quot;}
        This is Steve's bio.  It will override the text in the bio slot.
    {/fill_slot}
{/use_macro}&lt;/code&gt;&lt;/pre&gt;


&lt;h3 id=&quot;toc6&quot;&gt;See also:&lt;/h3&gt;
&lt;ul&gt;
    &lt;li&gt; &lt;a href=&quot;/wiki/xataface_templates&quot;&gt;Xataface templates&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt; The define_slot tag&lt;a href=&quot;/wiki/index.php?-action=new&amp;-table=wiki&amp;page_name=templates%3Atags%3Adefine_slot&quot;&gt;?&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt; The fill_slot tag&lt;a href=&quot;/wiki/index.php?-action=new&amp;-table=wiki&amp;page_name=templates%3Atags%3Afill_slot&quot;&gt;?&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt; &lt;a href=&quot;http://www.xataface.com/documentation/tutorial/getting_started/changing-look-and-feel&quot; onclick=&quot;window.open(this.href, '_blank'); return false;&quot;&gt;Changing the Look &amp;amp; Feel of Xataface&lt;/a&gt; (From the Getting Started Tutorial)&lt;/li&gt;
    &lt;li&gt; &lt;a href=&quot;http://www.xataface.com/documentation/tutorial/customizing-the-dataface-look-and-feel&quot; onclick=&quot;window.open(this.href, '_blank'); return false;&quot;&gt;Cusomizing the Xataface Look &amp;amp; Feel&lt;/a&gt; Tutorial&lt;/li&gt;
&lt;/ul&gt;

&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;Language&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;en&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</description>
            <author>templates:tags:use_macro</author>
        </item>
    </channel>
</rss>
