Skip to content

Commit

Permalink
implement fix from sunng87/handlebars-rust#592
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorCastelli committed Jul 7, 2023
1 parent 1c25e13 commit 8986a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/rule/rendering/md.hjs
Expand Up @@ -5,7 +5,7 @@
## Related rules:
{{#each self.related as |related|}}
{{#with (lookup ../module.contents @key) as | related_rule |}}
### [{{related_rule.name}}](/{{@key}})
### [{{related_rule.name}}](/{{@../key}})
> {{related_rule.short_rule}}
{{related.relationship}}
{{/with}}
Expand Down
2 changes: 1 addition & 1 deletion types/rule/rendering/txt.hjs
Expand Up @@ -7,6 +7,6 @@
Related rules:
{{#each self.related as |related|}}
{{#with (lookup ../module.contents @key) as | related_rule |}}
- [{{related_rule.name}}](/{{@key}}) : {{related.relationship}}
- [{{related_rule.name}}](/{{@../key}}) : {{related.relationship}}
{{/with}}
{{/each}}

0 comments on commit 8986a21

Please sign in to comment.