Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loader: require .json extension for JSON files
Trying to parse every file other than *.yml as JSON file isn't the best idea. It wastes time on trying to parse non-template files. It produces warnings like "json Loader Failed to load (...)template" for files that were never meant to be templates. It's a bad pracice in general. Check for file extension before using json.loads(). Fixes: 0d2d16c ("Native JSON Template Support") Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
- Loading branch information