Enhancement Proposal: /lib

3 views
Skip to first unread message

Tony Nelson

unread,
Dec 19, 2011, 8:44:56 PM12/19/11
to ColdMVC
All,

I have an idea for an enhancement, but I'd like your feedback before I
begin any development.

Let's say you want to add a third-party ColdFusion library (Hyrule,
Hoth, etc...) to your ColdMVC application. Often times these libraries
require a specific mapping in order to access their components.

To make adding libraries a virtual drag-and-drop process, I'd like to
propose updating ColdMVC to automatically create per-application
mappings for any top level directories inside your project's /lib
folder, if a /lib folder exists.

For example, if you added both Hyrule and Hoth to your application,
your directory structure might look like this:

/root
/app
/config
/lib
/hoth
/hyrule
/public

ColdMVC would then automatically create per-application mappings like
such:

this.mappings = {
"/hoth" = "/root/lib/hoth",
"/hyrule" = "/root/lib/hyrule"
};

Thoughts?

Sean Walsh

unread,
Dec 19, 2011, 10:45:13 PM12/19/11
to col...@googlegroups.com
I like the idea, but it's important for people to remember to clear their template cache when dropping a new library in. Mura has a similar process for plugins' mappings, and I recently had a hell of a time trying to get a plugin working because of ACF caching the mappings.cfm template.

Sean
Reply all
Reply to author
Forward
0 new messages