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

Allow passing in data from action config to EJS #206

Open
jonchurch opened this issue Nov 20, 2024 · 2 comments
Open

Allow passing in data from action config to EJS #206

jonchurch opened this issue Nov 20, 2024 · 2 comments

Comments

@jonchurch
Copy link
Member

jonchurch commented Nov 20, 2024

We have a template which is exactly the same between two different types of meetings, except for the meeting link.

I want to be able to add in a string to be available to my EJS template at render time.

expressjs/discussions#283

For example, I want to be able to do something like:

     uses: 'pkgjs/meet@v0'
        with:
          issueTitle: '<%= date.toFormat("yyyy-MM-dd") %> Express TC Meeting'
          # ...
          data:
            meetingLink: "https://example.com"

And have data object be passed to the EJS template

@jonchurch
Copy link
Member Author

Another workaround, for our specific case, would be to pass in the Title into the template.

We can check that to differentiate between the two types of meetings inside the ejs template and pick a meeting link that way.

@bjohansebas
Copy link

Oops, I hadn't seen this issue. Maybe adding the data option could be a better idea and would be more flexible than adding meetingLink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants