-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
We all know that cfinclude can create a "mixin" style environment for any component.
But cfinclude is not very elegant and doesn't lend itself well to modular development.
So my theory is, if we standardize cfm-based foundry modules, or possibly even not standardize it but just allow it, we can use require("module-id") and it would grab a cfm file and include it into a component or a page without the need of a file path or even care about that kind of thing.
cfinclude would always be more efficient when including your own files but require() just gives you one more option for modular development.
Components somewhat lock you down to a particular type of object or structure, with cfm-based modules, you could do different things.