Skip to content

fix(base-template): replace leftCurlyBrace close with atEnd and fix source dir discovery#48

Merged
deer merged 1 commit intomainfrom
template_fix
Apr 20, 2026
Merged

fix(base-template): replace leftCurlyBrace close with atEnd and fix source dir discovery#48
deer merged 1 commit intomainfrom
template_fix

Conversation

@deer
Copy link
Copy Markdown
Collaborator

@deer deer commented Apr 20, 2026

  • Fixes a bug where bare } lines in template bodies (CSS rules, JS functions) were silently dropped; replaces the ambiguous trailing } close with an explicit @end marker
  • Fixes source directory discovery in TemplateProcessor — the previous hardcoded two-level getParent().getParent() only worked for Maven's target/classes layout; replaced with a walk-up loop that also handles spin's .build/main/target layout
  • Updates all .jt template files and tests to use @end

@deer deer changed the title fix(base-template): replace } close with @end and fix source dir discovery fix(base-template): replace leftCurlyBrace close with atEnd and fix source dir discovery Apr 20, 2026
@deer deer merged commit b4f584f into main Apr 20, 2026
3 checks passed
@deer deer deleted the template_fix branch April 20, 2026 11:06
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