Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML fields in templates might be getting lost #21

Open
mo-seph opened this issue Feb 8, 2022 · 2 comments
Open

YAML fields in templates might be getting lost #21

mo-seph opened this issue Feb 8, 2022 · 2 comments

Comments

@mo-seph
Copy link
Owner

@mo-seph mo-seph commented Feb 8, 2022

If the template has some YAML fields that are not used by note-from-template, it could be that they are being removed from the final output

@AJP4
Copy link

@AJP4 AJP4 commented Feb 8, 2022

TEMPLATE for a Book Review

---
Status: Done
tags: source/book, {{tags}}
aliases: "{{aliases}}"
fileClass: Book
cssClass:

template-input: title
template-output: RESOURCES/SOURCES/BOOKS
template-should-create: "open-pane"
template-name: "Book"
template-should-replace: "sometimes"

---

Book Title:  **{{title}}**

## Notes

{{initial-notes}}


## Meta Data
Author:: {{Author}}
Genre:: {{Genre}}
Date-Read:: {{Date-Read}}
Rating:: {{Star-Rating}}

Links:: 

CREATES THIS FILE IF NONE OF THE FIELDS ARE POPULATED; BY WAY OF EXAMPLE

---
Status: Done
tags: source/book, 
aliases: 
fileClass: Book
---

Book Title:  **MyBook**

## Notes




## Meta Data
Author:: 
Genre:: 
Date-Read:: 
Rating:: 

Links:: 

NOTICE THAT cssClass is missing in the YAML

@mo-seph
Copy link
Owner Author

@mo-seph mo-seph commented Feb 8, 2022

That's very helpful, thanks! I'd guess that my YAML library is discarding empty tags, so that's a good place to start. If it is, then I'm not sure how much I can do about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants