Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

Complete partial resolution system for @-prefixed partials #71

@galligan

Description

@galligan

Description

The partial resolution system for loading @-prefixed partials from _partials/ directory is not implemented. Only a TODO stub exists in the code.

Expected Behavior

<!-- In a .rule.md file -->
{{> @common-header}}
{{> @security-guidelines}}
{{> @code-standards}}

Should load:

  • .ruleset/src/_partials/common-header.md
  • .ruleset/src/_partials/security-guidelines.md
  • .ruleset/src/_partials/code-standards.md

Current Behavior

private setupPartialResolver(): void {
  // TODO: Implement @-prefixed partial loading from _partials/
}

Implementation Requirements

  1. Resolve @name to _partials/name.md
  2. Support nested partials
  3. Handle missing partials gracefully
  4. Cache loaded partials
  5. Support both .md and .rule.md extensions
  6. Recursive partial inclusion

Implementation Location

  • /packages/core/src/compiler/handlebars-compiler.ts - setupPartialResolver method
  • May need a separate partial-resolver.ts module

Test Requirements

  • Test basic partial loading
  • Test nested partial inclusion
  • Test missing partial handling
  • Test circular reference detection
  • Test partial with variables
  • Test partial caching

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions