Skip to content

Commit

Permalink
Make compiled_css and compiled_js context vars (#90)
Browse files Browse the repository at this point in the history
* Make compiled_css and compiled_js context vars
  • Loading branch information
jpsca authored Aug 29, 2024
1 parent 77ddac9 commit 3b1d39b
Show file tree
Hide file tree
Showing 4 changed files with 299 additions and 70 deletions.
3 changes: 2 additions & 1 deletion benchmark/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from fastapi.templating import Jinja2Templates
from jinja2 import Environment, FileSystemLoader

from jinjax import Catalog


Expand Down Expand Up @@ -72,7 +73,7 @@ def print_separator():


if __name__ == "__main__":
print(f"Benchmarking...\n")
print("Benchmarking...\n")
time_jinja = timeit.timeit(render_jinja, number=number)
time_fastapi = timeit.timeit(render_fastapi, number=number)

Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3b1d39b

Please sign in to comment.