Skip to content

Commit

Permalink
[src][vdf][files] various minor fixes / refactoring in files spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Godhart committed May 9, 2024
1 parent 903272a commit 1950791
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vdf/files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ markdown:
ext: .md
sections: [frontmatter, content]
template : |-
{% if 'frontmatter' in sections %}---
{{ render_section('header__body') }}
{% if hasattr(file_vars, 'frontmatter') %}---
{{ yaml(file_vars.frontmatter) }}
---
{% endif %}
Expand All @@ -37,7 +37,7 @@ vhdl:
template : |
{% if 'header__declaration' in sections %}{{ render_section('header__declaration') }}
{% endif %}
entity {{ vars.subject }} is{% if 'unit__generics' in sections %}
entity {{ file_vars.subject }} is{% if 'unit__generics' in sections %}
generic (
{{ render_section('unit__generics', ' ') }}
);{% endif %}{% if 'unit__interface' in sections %}
Expand All @@ -49,7 +49,7 @@ vhdl:
{% if 'header__body' in sections %}{{ render_section('header__body') }}
{% endif %}architecture rtl of {{ vars.subject }} is
{% endif %}architecture rtl of {{ file_vars.subject }} is
{% if 'code__declaration' in sections %}{{ render_section('code__declaration', ' ') }}{% endif %}
begin
{% if 'code__body' in sections %}{{ render_section('code__body', ' ') }}{% endif %}
Expand Down

0 comments on commit 1950791

Please sign in to comment.