Commit Graph

20 Commits

Author SHA1 Message Date
568835855c chore: fix template variable assignment to use context dict instead of direct reference 2025-02-25 18:42:47 +00:00
4cc9224384 chore: remove trailing whitespace and unused imports from dreamii source files 2025-02-25 18:39:40 +00:00
10ebe3cc14 feat: fix indentation of file write block in TemplateView render method 2025-02-09 23:39:18 +00:00
2c17a7350c fix: move jinja2 globals assignment before markdown rendering to fix undefined request and context in python extension 2025-02-09 23:37:44 +00:00
20ac17c8e8 fix: register request and context as Jinja2 globals in TemplateView and Dreamii init 2025-02-09 23:34:17 +00:00
98b6c1ce26 fix: correct jinja2_env globals assignment syntax in TemplateView 2025-02-09 23:31:07 +00:00
f450f40179 feat: expose request and context globals in jinja2 env and fix PythonExtension init
- Add request and context to jinja2_env.globals in TemplateView for template access
- Fix PythonExtension.__init__ to store environment as instance attribute instead of SimpleNamespace
- Remove unused SimpleNamespace import and commented-out context assignment
- Retrieve request and context from environment globals in _to_html method
2025-02-09 23:28:57 +00:00
0e0efe88e8 feat: expose environment variable in PythonExtension execute method for template access 2025-02-09 23:17:56 +00:00
966a72b708 fix: remove deleted base.html template and fix markdown rendering in app.py 2025-01-27 23:42:24 +00:00
3cba8b3cfb fix: fix typo in variable name and add debug prints in TemplateView
Correct the misspelled variable `reponse` to `response` in the `render_template` method of `TemplateView` class. Also add three debug print statements to log template path resolution results, including found paths, non-template paths, and missing paths for improved debugging during development.
2025-01-27 22:49:11 +00:00
7a7092b24a feat: remove extraneous context argument from MarkdownRenderer web.Response call 2025-01-27 22:45:30 +00:00
2ed73197a7 feat: add content type detection and validation for uploaded files 2025-01-27 22:41:49 +00:00
f16ac21bbd feat: add charset utf-8 to html response and pass context to template renderer 2025-01-27 22:31:08 +00:00
aaf5639826 feat: add content_type text/html to markdown renderer response in TemplateView 2025-01-27 18:48:29 +00:00
c68a8e3217 fix: remove extraneous await from MarkdownRenderer.render() call in TemplateView 2025-01-27 18:45:55 +00:00
daf2b06772 fix: convert template_path to pathlib.Path in MarkdownRenderer.render to fix attribute error 2025-01-27 18:44:10 +00:00
7331d6c1a7 fix: correct misspelling of 'recieve' to 'receive' in user registration handler error message string 2025-01-27 18:42:04 +00:00
a0e762c41e fix: add markdown file detection and rendering in TemplateView before template fallback 2025-01-27 18:39:34 +00:00
46e5d21bc6 fix: switch run command from main.py to dreamii module and remove unused fetch module 2025-01-27 18:32:42 +00:00
5f3ddd15ba chore: add initial Dreamii CMS project scaffold with Jinja2 markdown and Python execution extensions 2025-01-27 18:27:26 +00:00