September 26th, 2023

Improved

Conditional Rendering in Copy-Paste Templates v3.6.0

Previously if data has been empty in a row it would still display the row, causing ugly gaps in your output.
You have now a few options to conditionally render custom text and the highlights, notes and associated spaces by wrapping them in special tags.

We've also added markers for indentation to the text field so you better can better design the template.

View full syntax guide >>

Syntax Updates:

  • If variable value not available:

{{^VariableName1}} Text and/or {{{VariableName2}}} {{/VariableName1}}
  • If variable value available

{{#VariableName1}} Text and/or {{{VariableName1}}} {{/VariableName1}}
  • If page has notes

{{#HasNotes}} Text and/or {{{VariableName1}}} {{/HasNotes}}

Previously

Now

Example that I use for a Roam Export

What does it do related to this new syntax update:

  • Displays a section "Annotations" if notes available on page

  • Displays Highlight of a note if Highlight available

  • If no Highlight on a particular note, make the NoteText indented two spaces less to be on the same level than other Highlights in the output