Currently, the project I am working on enables users to upload HTML templates along with CSS, which are then processed by the application for a variety of tasks. While the uploading process is functioning properly, I am in search of a method to validate the uploaded HTML and CSS files. I have come across various gems and plugins designed for integration into unit tests, such as https://github.com/realityforge/rails-assert-valid-asset, but I am specifically seeking a solution that can be implemented to validate files upon upload in a live production environment.
Is there a tool or system that can perform this type of validation?