On 8/6/07, Justin Scott wrote:
....
> does not get executed. If you want that code in the database to be
> executed, you will need to write it to a file first, then include it in
> the page. Generally I don't recommend doing that unless you absolutely
You can also create a function, like outputAnnouncementsQuery(),
which runs your bit of code, and then search and replace using
evaluate("#outputAnnouncementsQuery(your,args)#"), which will
run that bit of code for you without having to write anything to disk
or whatnot.
Just a little variation on the placeholder bit, basically.
> must as it will kill your page-load times unless you really know what
> you're doing and apply some caching to the process.
Evaluate isn't as bad as writing to disk, but it's still not optimal.
Actually, I can't remember what evaluate gave me over your standard
placeholder replacement technique... it was useful tho, IIRC. Some
good reason for thinking that was cool, I bet. Yeah.
Anyways, Bruce, I'd start building a meta-language, and use it, vs.
writing pure CF into a DB or whatnot. With a meta-language, you
can always switch back-ends, ya know? Unless you want to write
a cf interpreter... :-)
Now, as for what you're probably trying to do, I did something pretty
close- pretty much did how DW does with the "live" preview, or
whatnot- I've got my meta-language, which inserts dynamic content,
but I keep the content locked, so you can't edit it (as you'd be editing
HTML, not the actual dynamic content) basically.
Thus, the user sees how it will look, while editing (WYSIWYG).
I should probably keep it all under wraps and come up with something
to sell, but what the hell- it ain't rocket science. Or even "Ooo, la la"-ish.
On the other hand, if you really really want to code CF thru a web
interface, I've got that SVN plugin for FCKEditor- you could set it
up to publish the page wherever you want. And be versioned, to boot.
Yup, if that's what your after, Subversion it, baby! lol =]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285547
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4