Patrick, I'm completely with you about being extremely dubious about having logic in a config file. I've fought this more than anyone. But there are a few, rare, unusual, scant, [insert adjective here] times when it's needed -- or at least is very convenient. We added it most reluctantly and still have to fight people who want a switch statement in the config file.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick McElhaney Sent: Friday, October 28, 2005 2:48 PM To: [email protected] Subject: Re: [CFCDev] CFSQLTool debate On 10/28/05, Hugo Ahlenius <[EMAIL PROTECTED]> wrote: > Mach-II exposes an API so that you can specify the programme flow in > an XML file. I'm looking for something one level below the XML file. I want to be able to write code against an API (in CFML). I think that type of API would be easier to use. If not, the XML file is still an option. I could write a script that reads the XML file and pass the information on to the API. For that matter, I could have the script read an .ini file or <gasp!> a database. > Note that one of the advantages of xml (in comparison to others, such > as windows ini) is that you can verify it against a dtd. Yes, you can do that at the expense of less readability. (Okay, sometimes you get /more/ readabilty with XML.) Of course, we're not limited to the "standard" file formats that can be read with existing APIs. Sometimes "inventing" a format and writing a parser for it makes sense. CSS is a good example. > Mach-II exposes loads of meaty api:s for plugins and filters that > needs to be implemented in cfml. Like I said, what I'm looking for may already be there. Tell me, can I build a Mach-II/MG/FB4 file without using XML at all? > For me personally it took as training to supress the mental need to > put in logic in the mach-ii controller/xml ("I need a cfif here!"), > now that is all gone... ! One thing I've never understood about FB4 is why there's an <if/> tag. Patrick -- Patrick McElhaney 704.560.9117 http://pmcelhaney.weblogs.us ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected] ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). CFCDev is supported by New Atlanta, makers of BlueDragon http://www.newatlanta.com/products/bluedragon/index.cfm An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
