in reply to Ordering Template cards
"Should I be calling multiple template files from the script or should that processing be done within Template?"
Seems to me from what you've shown that for each rendering of the page, you will have an array of cards that you have pulled from the DB for the given user. If that's the case then I would use a [% FOREACH card IN cards %] ... [% END %] block in the template and just show 'em in the order given. See http://www.template-toolkit.org/docs/manual/Directives.html#section_Loop_Processing.
Hope this helps!
|Replies are listed 'Best First'.|
Re^2: Ordering Template cards
by Bod (Hermit) on Jan 24, 2021 at 16:52 UTC