> Nasty hack, but but you could do something with <cfmodule template=...> ?
>
> Or use CFCs or UDFs?
>
> Nick
>

I can't do cfmodule (I think...) because the reason I wish to do this is
to include CFCs.

For example a CFC component might live here:

oliver.fred.project.People.Present

Now I have a function New() that is simply a shortened version of
CreateComponent() that takes one argument: the component name.

I'd like to create a function called Using() that - for the duration of
the request - appends whatever is passed to it to the custom tag path.

So instead of doing this:

New("oliver.fred.project.People.Present");
New("oliver.fred.project.Car.Somethingelse");
... and so on

I could do this:

Using("oliver.fred.project");
New("People.Present");
New("Car.Somethingelse");

One way is to simply define a string that has "oliver.fred.project" and do :

  New("#defStr#.People.Present");

But I'm lazy.

Nick de Voil wrote:

--
  Oliver Tupman
  Key Systems Geotechnical

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to