Skip to content

ToDo: experiment with using CFM's as modules #20

@jfrux

Description

@jfrux

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions