A Jinja2 filter that quotes a string.
(s:str)
| 19 | |
| 20 | |
| 21 | def quote_string(s:str) -> str: # pragma: no cover |
| 22 | """A Jinja2 filter that quotes a string.""" |
| 23 | if not isinstance(s, str): |
| 24 | logging.error("Input must be a string.") |
| 25 | return s |
| 26 | return f'"{s}"' |
| 27 | |
| 28 | def ruby_capitalize(s:str) -> str: |
| 29 | """A Jinja2 filter that capitalizes the first letter of each word in a string.""" |
nothing calls this directly
no outgoing calls
no test coverage detected