in reply to Re^2: Ordering Template cards
in thread Ordering Template cards

Hm, so maybe the card hash in the array cards has a field card.data and a field card.template, and then inside the loop you process the template with the data using INCLUDE? You can reference data in variables using a sigil in nested directives for this.

Hope this helps!


The way forward always starts with a minimal test.

Replies are listed 'Best First'.
Re^4: Ordering Template cards
by Bod (Parson) on Jan 24, 2021 at 17:04 UTC

    Something along these lines...

    [% templatefile = card.template %] [% INCLUDE "$templatefile" %]
    Thanks - I will test doing something along those lines