Commit Graph

14 Commits

Author SHA1 Message Date
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