mirror of
https://github.com/django-components/django-components.git
synced 2025-09-11 16:36:17 +00:00
feat: extensions (#1009)
* feat: extensions * refactor: remove support for passing in extensions as instances
This commit is contained in:
parent
cff252c566
commit
4d35bc97a2
24 changed files with 1884 additions and 57 deletions
|
@ -28,6 +28,10 @@ def is_str_wrapped_in_quotes(s: str) -> bool:
|
|||
return s.startswith(('"', "'")) and s[0] == s[-1] and len(s) >= 2
|
||||
|
||||
|
||||
def snake_to_pascal(name: str) -> str:
|
||||
return "".join(word.title() for word in name.split("_"))
|
||||
|
||||
|
||||
def is_identifier(value: Any) -> bool:
|
||||
if not isinstance(value, str):
|
||||
return False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue