Most of my website is static HTML, but I do have a couple PHP pages. I''d like the default template to be applied to it (i.e. I don''t want it to just be copied). How can I get webgen to create the PHP file with the right extension in the output directory? A way to specify the following mapping would be nice: *.php.page -> *.php *.page -> *.html Thanks. - Kannan ____________________________________________________________________________________ Sick sense of humor? Visit Yahoo! TV''s Comedy with an Edge to see what''s on, when. http://tv.yahoo.com/collections/222
On 10.08.2007, at 12:54, Kannan Goundan wrote:> Most of my website is static HTML, but I do have a couple PHP > pages. I''d like the default template to be applied to it (i.e. I > don''t want it to just be copied). > > How can I get webgen to create the PHP file with the right > extension in the output directory? A way to specify the following > mapping would be nice: > > *.php.page -> *.php > *.page -> *.htmlYou can use the following entry in the meta information section of page file to change the extension to .php: outputNameStyle: [:name, [., :lang], .php] Hope that helps, Thomas
Thanks, Thomas. Just so I know how this works... Can any of the things listed under the "plugin parameters" documentation be put in the meta information section of the page file? ----- Original Message ---- From: Thomas Leitner <t_leitner at gmx.at> To: Kannan Goundan <cakoose at yahoo.com> Cc: webgen-users at rubyforge.org Sent: Friday, August 10, 2007 5:55:21 AM Subject: Re: [webgen-users] Mix of PHP and HTML files. On 10.08.2007, at 12:54, Kannan Goundan wrote:> Most of my website is static HTML, but I do have a couple PHP > pages. I''d like the default template to be applied to it (i.e. I > don''t want it to just be copied). > > How can I get webgen to create the PHP file with the right > extension in the output directory? A way to specify the following > mapping would be nice: > > *.php.page -> *.php > *.page -> *.htmlYou can use the following entry in the meta information section of page file to change the extension to .php: outputNameStyle: [:name, [., :lang], .php] Hope that helps, Thomas ____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
On 10.08.2007, at 15:45, Kannan Goundan wrote:> Thanks, Thomas. Just so I know how this works... Can any of the > things listed under the "plugin parameters" documentation be put in > the meta information section of the page file?The plugin parameters reference shows all available parameters of all plugins. A plugin parameter can be set to a different value in the configuration file. So these parameters have nothing to do with the keys for the meta information section. However, it is no coincidence that the global parameter value File/PageHandler:outputNameStyle and the per page file meta information key outputNameStyle have the same spelling: the latter overrides the former if set. Bye, Thomas