Handling additional files without extensions #270
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #138
🚀 Changeset Summary
This changeset introduces enhancements to Simply Static’s file handling and binary file detection, specifically focusing on additional file management and custom handler assignment.
🆕 New Features:
Additional_File_Handler
class was introduced to manage user-specified files, allowing Simply Static to handle custom files beyond typical web pages.🔄 Enhancements:
Binary File Detection:
is_binary_file
method in thePage
model was updated to detect additional binary files based on their content type and handler class.null
content type, handled byAdditional_File_Handler
, are now treated as binary, improving the accuracy of file type categorization.Setup Task Improvements:
Setup_Task
class, user-specified files and directories are now explicitly assigned toAdditional_File_Handler
upon initialization, allowing for consistent handling of additional files throughout the export process.🛠️ Impact:
This changeset extends Simply Static’s capabilities in managing and exporting diverse file types, particularly custom files specified by users.