diff options
author | Matt Arnold | 2025-04-15 09:58:58 -0400 |
---|---|---|
committer | Matt Arnold | 2025-04-15 09:58:58 -0400 |
commit | e8880e73a23571acf47845b1e38292239c5d71b2 (patch) | |
tree | 0f12139f68f7dd99646d257bc3519744ba5b2f2e /template_filters.py | |
parent | dc557895b1bd517bbdc2821a79f2be12624010d6 (diff) |
finally got different profiles/faccets to work.
Unsure if it was just the typo in the template or we really needed backend changes but belt and suspenders logic applies
Diffstat (limited to 'template_filters.py')
-rw-r--r-- | template_filters.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/template_filters.py b/template_filters.py index 14db228..70e29ed 100644 --- a/template_filters.py +++ b/template_filters.py @@ -1,4 +1,6 @@ import datetime +import bbcode +from jinja2 import pass_environment def format_datetime(value, format="%d %b %Y %I:%M %p"): @@ -8,3 +10,9 @@ def format_datetime(value, format="%d %b %Y %I:%M %p"): dt = datetime.datetime.fromtimestamp(value) return dt.strftime(format) + + +@pass_environment +def svsbbcode(env, value): + # for now just return the default + return bbcode.render_html(value) |