17 Commits

Author SHA1 Message Date
29ef54fe9b Update the template decorator to pass type information along better (e.g. pyright testing). 2025-04-03 18:02:24 -07:00
9622a174a1 Minor tweak to fix tests related to PR #27 2024-11-10 09:41:21 -08:00
d462fbfa0f Sync with upstream branch 'main'.
Retained my changes. May need to rerun any linting that may have been
reverted in exceptions.py, but functionality should now be retained.

Signed-off-by: Ayzee Patton <vlpatton@vlpatton.gay>
2024-11-07 13:23:51 -06:00
a9f6b128b0 Run Ruff --fix across the codebase. 2024-11-07 00:40:09 -08:00
26bb2e254f Add data templating to generic_error. Bump version patch number.
Data templating is now possible with `generic_error` in a way that does
not break compatibility. May add a readme update in the future to
specify new behavior.

Signed-off-by: Ayzee Patton <vlpatton@vlpatton.gay>
2024-11-06 13:37:22 -06:00
704dc1d95b Added a more generic error reporting function: generic_error(). 2022-06-07 14:43:50 -07:00
654446b6c7 Add type info for a few more return types. 2021-10-12 13:38:16 -07:00
f03f71072e Adds "pretty" 404 page support. 2021-07-29 17:00:12 -07:00
22f04b2347 Allow decorator without parentheses 2021-05-02 13:10:19 +01:00
31d727a1c2 Fixes #7 - crash on empty template folder. 2021-03-11 09:19:53 -08:00
81a7f1203d Adds a little more testing around lack of calling global_init(). 2021-02-07 10:32:17 -08:00
033ac165b7 Adds a little more testing around lack of calling global_init(). 2021-02-07 10:30:51 -08:00
fd342396c6 Now guesses for *.html and then *.pt for convention naming convention. 2021-01-03 17:52:27 -08:00
82973fd7fc Fix bug in default template name detection. 2020-12-29 18:28:21 -08:00
057ce4fce0 Adds default template select (templates/module/method.pt) when not specified. 2020-12-16 15:14:54 -08:00
bae0d90252 Remove redundant test for return type in template decorator. Improved error message. 2020-11-16 10:15:02 -08:00
0ee711b4ad First basic version working here. 2020-10-26 09:15:26 -07:00