mirror of
https://github.com/wrabit/django-cotton.git
synced 2025-08-03 06:42:17 +00:00
wip
This commit is contained in:
parent
40ca698013
commit
5fb5b359f6
5 changed files with 2 additions and 13 deletions
|
@ -1,13 +1,6 @@
|
|||
[project]
|
||||
name = "cotton-dev-app"
|
||||
requires-python = ">=3.8, <4"
|
||||
dependencies = [
|
||||
"django~=4.2.6",
|
||||
"beautifulsoup4~=4.12.2",
|
||||
"selenium~=4.13.0",
|
||||
"chromedriver-py~=117.0.5938.92",
|
||||
"webdriver-manager~=4.0.1"
|
||||
]
|
||||
|
||||
[tool.poetry]
|
||||
name = "cotton-dev-app"
|
||||
|
@ -19,6 +12,3 @@ authors = ["Will Abbott <willabb83@gmail.com>"]
|
|||
python = "^3.8"
|
||||
Django = "^4.2"
|
||||
beautifulsoup4 = "~4.12.2"
|
||||
selenium = "~4.13.0"
|
||||
chromedriver-py = "~117.0.5938.92"
|
||||
webdriver-manager = "~4.0.1"
|
|
@ -56,7 +56,7 @@ def benchmark_template_rendering(template_name, iterations=1000):
|
|||
|
||||
# Benchmarking each template
|
||||
time_native_extends, output_native_extends = benchmark_template_rendering(
|
||||
"cotton/benchmarks/native_extends.html"
|
||||
"benchmarks/native_extends.html"
|
||||
)
|
||||
time_compiled_cotton, output_compiled_cotton = benchmark_template_rendering(
|
||||
"cotton/benchmarks/cotton_compiled.html"
|
||||
|
|
|
@ -85,7 +85,6 @@ class Loader(BaseLoader):
|
|||
class UnsortedAttributes(HTMLFormatter):
|
||||
def attributes(self, tag):
|
||||
for k, v in tag.attrs.items():
|
||||
# remove any new lines in v
|
||||
yield k, v
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue