Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to call CBWIRE UDFs from the cbwire template as computed properties are too limiting. #118

Closed
grantcopley opened this issue Aug 27, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@grantcopley
Copy link
Collaborator

Currently you call computed property functions from your wire template, but they are very limiting.

  1. You can't pass arguments
  2. You must always return a value
  3. The computed property cannot easily parse other computed properties it may need.

I've never liked the computed properties implementation to be honest.

What if we could just call any methods defined within our wires?

data = {};

function add3( num ) {
    return num + 3;
}

....

<cfoutput><div>#add3( 10 )#</div></cfoutput>

Being able to call UDFs directly from the template would add a lot more flexibility over computed properties.

@grantcopley grantcopley added the enhancement New feature or request label Aug 27, 2023
@grantcopley grantcopley added this to the v3.1 milestone Aug 27, 2023
@grantcopley grantcopley self-assigned this Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant