In semi-pseudo code I’m looking for something like this:
#include <header.html> <!--HTML that varies between cards pasted here--> #include <footer.html>
Anticipating questions or doubts:
- What’s the point of the permanent elements?
These parts of HTML set up very important DIVs across the card. There’s an HTML scaffolding I need to establish before I enter the actual content into the code and then close this DIV scaffolding in the footer.
- Can’t you just paste that code over to all the cards?
At the moment yes, I am doing that, but it’s been insanely exhausting. I’ve around 10 note types, some have as many as 10 card types inside them, and each card type has two sides, so imagine pasting code into all that stuff.
10 * (avg.) 5 * 2 = 100 code fields!!!
- If you’ve already pasted that code into some of the cards and it works, why ask the question? Just continue pasting.
Because I like to tinker with my code and upgrade it systematically. Without the import functionality I won’t ever be motivated enough to change my cards, even if I discover some faults. If I ever, ever want to change something in the layout, it will have to entail changing the same code over and over, a hundred times.
- Merge note types into a bigger note type to cut down on the number of code fields.
Tried it to some extent, but I managed to whittle the number of notes down only so much. Creating even more versatile note type would be a huge undertaking and probably result in a more cluttered code than now.