Skip to content

Add extensible environment variable mapping system#22

Merged
roxblnfk merged 1 commit into
mainfrom
view-envs
Oct 19, 2025
Merged

Add extensible environment variable mapping system#22
roxblnfk merged 1 commit into
mainfrom
view-envs

Conversation

@roxblnfk

Copy link
Copy Markdown
Member

What was changed

Added extensible environment variable mapping system for view templates. Applications can now define custom environment constants through registry entries instead of modifying framework code.

Example:

- name: app_constants
  kind: registry.entry
  meta:
    type: view.env_mapping
    priority: 25
  mappings:
    hostname: APP_BASE_URL
    api_url: PUBLIC_API_URL
    debug_mode: DEBUG_MODE

These become available in templates as {{ env.hostname }}, {{ env.api_url }}, etc.

Why?

Eliminates hardcoded environment mappings in the framework. Applications can add their own constants without touching framework code. Priority system (0-100) allows proper configuration layering between framework defaults, system overrides, and application-specific settings.

@roxblnfk roxblnfk requested a review from wolfy-j October 15, 2025 20:00
@roxblnfk roxblnfk merged commit ea42ee9 into main Oct 19, 2025
@roxblnfk roxblnfk deleted the view-envs branch October 19, 2025 11:37
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