[core/output] Add custom "raw" data variable

see #561
This commit is contained in:
Tobias Witek 2020-02-29 13:44:04 +01:00
parent 1865b5488b
commit 302296ee03

View file

@ -438,6 +438,7 @@ class WidgetDrawer(object):
self._markup = "none" if not self._config else self._config.markup()
self._full_text = widget.full_text()
raw = self._full_text
padding = self._theme.padding(widget)
@ -464,6 +465,7 @@ class WidgetDrawer(object):
"instance": widget.id,
"name": module.id,
"markup": self._markup,
"_raw": raw,
})
return self._widgets