[mod] add CSS (LESS) to xsl style to view rss in browser

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2024-11-24 18:19:11 +01:00 committed by Markus Heiser
parent 5fbea0b62d
commit cf8c36f351
5 changed files with 61 additions and 1 deletions

View file

@ -614,6 +614,14 @@ def client_token(token=None):
return Response('', mimetype='text/css')
@app.route('/rss.xsl', methods=['GET', 'POST'])
def rss_xsl():
return render_template(
f"{request.preferences.get_value('theme')}/rss.xsl",
url_for=custom_url_for,
)
@app.route('/search', methods=['GET', 'POST'])
def search():
"""Search query in q and return results.