You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having dicts in dicts doesn't work.
This is helpful for styling elements inline.
In [1]: from cottonmouth.tags import *
In [2]: from cottonmouth.html import *
In [3]: render([input, {'style': {'visibility': 'hidden'}}])
Out[3]: '<input style="{\'visibility\': \'hidden\'}"></input>'
Expected output:
'<input style="visibility: hidden;"></input>'
My current suggestion would be to render a dict in a dict as a CSS string.
Off the top of my head, I'm not sure where else this may be helpful or if it may cause any conflicts.
The text was updated successfully, but these errors were encountered:
Having dicts in dicts doesn't work.
This is helpful for styling elements inline.
Expected output:
My current suggestion would be to render a dict in a dict as a CSS string.
Off the top of my head, I'm not sure where else this may be helpful or if it may cause any conflicts.
The text was updated successfully, but these errors were encountered: