Skip to content

Add dynamic variable substitution to conference descriptions#70

Open
sikesbc wants to merge 5 commits intomainfrom
epic1-dynamic-variable-substitution
Open

Add dynamic variable substitution to conference descriptions#70
sikesbc wants to merge 5 commits intomainfrom
epic1-dynamic-variable-substitution

Conversation

@sikesbc
Copy link
Copy Markdown

@sikesbc sikesbc commented Apr 16, 2026

What this PR does:

  • Adds dynamic variable substitution (e.g. {conference}, {conference_start_date}, {venue}) to conference description and registered attendees message markdown fields. Reuses the existing email template variable system so organizers can embed conference data that auto-populates at render time.

Include screenshots, videos, etc.

  • N/A: backend feature, admin form now shows available variables below description fields.

Who authored this PR?
@sikesbc

How should this PR be tested?

  • Edit a conference description in the admin panel and add placeholders like {conference} or {conference_start_date}.
  • View the conference splash page and confirm the variables are replaced with actual conference data.
  • New specs in spec/services/email_template_parser_spec.rb and spec/helpers/format_helper_spec.rb cover the parser with nil user and the new markdown_with_variables helper.

Are there any complications to deploying this?

  • No migrations or data changes. The EmailTemplateParser now accepts an optional user parameter (defaults to nil), which is backwards compatible with all existing callers.

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

Successfully merging this pull request may close these issues.

1 participant