Skip to content

Conversation

@pcfreak30
Copy link
Member

@pcfreak30 pcfreak30 commented Jan 13, 2026

  • Add comprehensive Go template component library (@lumeweb/rego)
  • Supports GoVar, GoIf, GoRange, GoWith, GoDefine, GoUseTemplate, GoBlock
  • Add data transformation helpers (GoDate, GoCurrency, GoTruncate)
  • Add string transformations (GoUpperCase, GoLowerCase, GoTrim)
  • Add pipeline chaining and variable assignment (GoPipe, GoLet, GoFormat)
  • Add URL generation (GoUrl) and array operations (GoChunk)
  • Add conditional helpers (GoEqual, GoEmpty) and comments (GoComment)
  • Include comprehensive documentation and examples
  • Add full test coverage

This pull request introduces the @lumeweb/rego library, a React-to-Go Template DSL designed for email generation. The library provides a set of React components that wrap React Email elements and output HTML embedded with Go template syntax. This enables developers to design and style emails using React while allowing Go backends to execute the templates with runtime data.

Key functional capabilities include:

  • Core Template Logic: Components for variable interpolation (GoVar), conditional rendering (GoIf, GoElse, GoEqual, GoEmpty), loop iteration (GoRange), and context switching (GoWith).
  • Template Composition: Support for defining reusable template blocks (GoDefine, GoUseTemplate, GoBlock) to create modular email layouts.
  • Data Transformation: Helpers for formatting data such as dates (GoDate), currency (GoCurrency), and text truncation (GoTruncate).
  • String Manipulation: Components for transforming text case and trimming whitespace (GoUpperCase, GoLowerCase, GoTrim).
  • Helper Functions: Utilities for embedding Go template syntax directly into JSX attributes (e.g., goVar, goUrl, goDate) to handle dynamic links and inline content.

- Add comprehensive Go template component library (`@lumeweb/rego`)
- Supports GoVar, GoIf, GoRange, GoWith, GoDefine, GoUseTemplate, GoBlock
- Add data transformation helpers (GoDate, GoCurrency, GoTruncate)
- Add string transformations (GoUpperCase, GoLowerCase, GoTrim)
- Add pipeline chaining and variable assignment (GoPipe, GoLet, GoFormat)
- Add URL generation (GoUrl) and array operations (GoChunk)
- Add conditional helpers (GoEqual, GoEmpty) and comments (GoComment)
- Include comprehensive documentation and examples
- Add full test coverage
@pcfreak30
Copy link
Member Author

@kody start-review

@kody-ai
Copy link

kody-ai bot commented Jan 13, 2026

Kody Review Complete

Great news! 🎉
No issues were found that match your current review configurations.

Keep up the excellent work! 🚀

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug
Performance
Security
Breaking Changes
Cross File
Kody Rules
Code Style
Refactoring
Error Handling
Maintainability
Potential Issues
Documentation And Comments
Performance And Optimization

Access your configuration settings here.

@pcfreak30 pcfreak30 merged commit ad4189c into develop Jan 13, 2026
1 of 2 checks passed
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.

2 participants