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

If the cards are that different, I would keep them as separate files. This will make it easier to make changes to limited parts of the cards, and will maybe even encourage you to copy a template file for a slightly (but enough) different new card.

As switching to a different card means a reload (I guess), keeping the different cards as different templates makes sense.

Replies are listed 'Best First'.
Re^4: Ordering Template cards
by Bod (Hermit) on Jan 24, 2021 at 17:09 UTC
    If the cards are that different, I would keep them as separate files.

    In most cases, there is no similarity between them other than colours, font sizes and fonts.

    As switching to a different card means a reload (I guess)

    The cards are all displayed at the same time. One after the next. The current system is designed to be viewed on mobile and has a very constrained width on desktop so they appear one below the previous one. The refactored version may make use of the width of a desktop and display the cards in columns but, as they are all different heights, that won't be trivial.