You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm parsing YAML into a Aeson.Value and passing it straight to the template using bindJson, for using like this (tags would be a YAML field with list value):
The 'tags' feature in template is broken. cf. snapframework/heist#128
One way to address it is to specify a frontmatter.yaml default for Aeson.Value, to ensure that all fields are present regardless of what's in the individual Markdown file.
srid
added a commit
to srid/emanote
that referenced
this issue
May 17, 2021
The 'tags' feature in template is broken. cf. snapframework/heist#128
One way to address it is to specify a frontmatter.yaml default for Aeson.Value, to ensure that all fields are present regardless of what's in the individual Markdown file.
The 'tags' feature in template is broken. cf. snapframework/heist#128
One way to address it is to specify a frontmatter.yaml default for Aeson.Value, to ensure that all fields are present regardless of what's in the individual Markdown file.
I'm parsing YAML into a Aeson.Value and passing it straight to the template using
bindJson
, for using like this (tags
would be a YAML field with list value):This however doesn't work when the YAML has no fields named "tag"; Heist throws:
expression error: can't find "tags" in JSON object (<with> tag)
I'd like to be able to specify a "else" case to render if there is no such field, based on the similar behaviour if the IfElse splice, i.e.
What do you folks think of this feature? It may be extended to
<value>
and<snippet>
as well.The text was updated successfully, but these errors were encountered: