Re: Parsing one template into another

From: Date: Wed, 26 Sep 2001 09:39:06 +0000
Subject: Re: Parsing one template into another
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1551@lists.php.net to get a copy of this message
Something like <html> <head> <title>Site Design</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF"> {include file="yourfilenamegoeshere.extension"} </body> </html> then in yourfilenamegoeshere.extension you would have <p> This would be content but this is a dummy. Your name is {Name}.</p> Does that answer your question ? Well, at the moment I'd have: --- <html> <head> <title>Site Design</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF"> {CONTENT} </body> </html> ---- and then for each page I'd have something like: ---- <p> This would be content but this is a dummy. Your name is {Name}.</p> ---- And so I'd insert that template into {CONTENT} and then display the output. Can you give me an example as to how this would be done in Smarty? Thanks, Peter. --oOo-- Narrow Gauge on the web - photos, directory and forums! http://www.narrow-gauge.co.uk --oOo-- Peter's web page - Scottish narrow gauge in 009 http://members.aol.com/reywob/ --oOo-- --- You are currently subscribed to smarty as: arnaud.limbourg@cegetel.fr To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/

« previous php.smarty.general (#1551) next »