Board index

Cheshire Cat Software

Steve Shipway's Discussion Groups
Locations of visitors to this page
It is currently Wed 08 Sep, 2010 11:51 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Using multiple templates at once
PostPosted: Sun 24 Aug, 2008 5:12 pm 
Offline
Site Admin
User avatar

Joined: Mon 28 Jul, 2003 5:42 pm
Posts: 3005
Location: Auckland, New Zealand
Most (but not all) templates can be appended to each other, so you can use multiple host or interface templates at once. You cannot put a host template together with an interface template, though.

This will not work if two of the joined templates define the same temporary variables, or if one of the templates performs some sort of drastic action, such as erasing any previously-defined directives. To help avoid this problem, surround each component template with curly brackets, like this:

Code:
{
# contents of template 1
}
{
# contents of template 2
}


In all cases, test it first.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group