Skip to content

Config: Add framework and template_engine options#1658

Merged
marcoroth merged 1 commit intomainfrom
engine-parser-options
Apr 20, 2026
Merged

Config: Add framework and template_engine options#1658
marcoroth merged 1 commit intomainfrom
engine-parser-options

Conversation

@marcoroth
Copy link
Copy Markdown
Owner

@marcoroth marcoroth commented Apr 20, 2026

This pull request adds framework and template_engine configuration options to the .herb.yml.

These top-level settings tell Herb what environment it's running in and what template engine is being used for compilation. This enables context-aware behavior across the toolchain.

Configuration in .herb.yml:

framework: actionview      # ruby | actionview | hanami | sinatra (default: ruby)
template_engine: herb      # erubi | erb | herb (default: erubi)

Valid values are defined once in config/options.yml and code-generated into the relevant configuration files in all bindings.

This allows us in the future to have more specific features tailored for each target framework and engine. This pull request is meant to lay the groundwork for:

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Apr 20, 2026

npx https://pkg.pr.new/@herb-tools/formatter@1658
npx https://pkg.pr.new/@herb-tools/language-server@1658
npx https://pkg.pr.new/@herb-tools/linter@1658

commit: a3f5a5d

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 20, 2026

🌿 Interactive Playground and Documentation Preview

A preview deployment has been built for this pull request. Try out the changes live in the interactive playground:


🌱 Grown from commit a3f5a5d


✅ Preview deployment has been cleaned up.

@marcoroth marcoroth merged commit 37a1bea into main Apr 20, 2026
32 checks passed
@marcoroth marcoroth deleted the engine-parser-options branch April 20, 2026 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant