fluent_contents.utils¶
This module provides additional small utility functions which plugins can use.
-
fluent_contents.utils.validate_html_size(value)¶ Validate whether a value can be used in a HTML
widthorheightvalue. The value can either be a number, or end with a percentage sign. Raises aValidationErrorif the value is invalid.