about summary refs log tree commit diff
path: root/strike.py
AgeCommit message (Collapse)Author
2023-12-05strike: merge as subdirStarfall
2023-12-05strike: reindent with tabsStarfall
2023-12-05strike: fix error when exclusions is not definedStarfall
2023-12-05strike: process files in subdirectoriesStarfall
2023-12-05strike: fix crash when subdirectories existStarfall
2023-12-05strike: 'import os' instead of 'from os import'Starfall
The semantics of os.listdir() here are better than Path.iterdir(), since the former provides us paths relative to input_dir which we copy directly over to output_dir. The pathlib version returns the full path to input_dir/file and then we'd have to get file.name outselves.
2023-12-05strike: rename location -> file in handle_file()Starfall
2023-12-05strike: use pathlib.Path for better readability where simpleStarfall
2023-12-05strike: minor refactoringStarfall
* move sys import to where it's used * remove commented-out code * change parser -> config in read_config() for slightly better readability * change meta_dict -> meta and file_contents -> contents in handle_file() * push handle_frontmatter() back into handle_file(). likely to pull this back out again if we decide the format is handy for keeping default values around in templates, but we'll cross that bridge later
2023-12-05strike: implement basic key=value front matterStarfall
2023-12-05strike: implement meta[title] and meta[data] from file informationStarfall
2023-12-05strike: statement of intent for a few more variablesStarfall
2023-12-05strike: read and process from config fileStarfall
2023-12-05strike: clean up source a bitStarfall
2023-12-05strike: use argparser instead of hardcoding directories and filenamesStarfall
2023-12-05strike: reduce indentation level slightlyStarfall
2023-12-05strike: move template from fstring to fileStarfall
2023-12-05strike: simple example of fstring templateStarfall