changeset 29:f5f29660fa6a

html: Add global method to get the CSS code.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 12 Jan 2017 09:18:20 -0800
parents c9850153e4b3
children ff71a3e7fab0
files jouvence/html.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jouvence/html.py	Thu Jan 12 00:45:07 2017 -0800
+++ b/jouvence/html.py	Thu Jan 12 09:18:20 2017 -0800
@@ -26,6 +26,10 @@
         return fp.read()
 
 
+def get_css():
+    return _res('html_styles.css')
+
+
 class HtmlDocumentRenderer(BaseDocumentRenderer):
     def __init__(self, standalone=True):
         super().__init__(HtmlTextRenderer())