cards.py
cards.py copied to clipboard
Default templates
I find that the hardest part about making a template is taking the first step. Maybe the project could come with a set of pre-defined, typical-looking, templates ready for use?
This can be accomplished in different ways:
- Including the templates as optional files that you can copy-paste to your project
- Allows tweaking to your specific needs
- Including the templates as keywords: e.g. "@template,{{ default-magic }}", or simpler: "@template,magic"
- Allows instant use- good for simple prototyping
- But troublesome as soon as you want to tweak stuff
- Both?
This could be combined with #38. Consider determining which fields a row has, then finding the most fitting default template and using that. This would allow for prettier looking output for certain cases.