added new formatters
This commit is contained in:
1 parent
043b1e918f
commit
42715de295
8 files changed
+60
-4
No files matched your search
@@ -0,0 +1,7 @@
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
|
||||
def format(soup: BeautifulSoup) -> None:
|
||||
for element in soup.find_all(attrs={"dj-command": True}):
|
||||
element.string = f"{{% {element.get("dj-command")} %}}"
|
||||
element.unwrap()
|
||||
Reference in new issue
Block a user