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
Since v3.12 the brython options can be configured with the non-standard html tag <brython-options></brython-options>. This is really nice and helps to configure the needed behavior. However, these are not standard html tags, it becomes difficult to use these config options with frameworks as react, where only standard tags are allowed to be injected.
Would it be possible to support <meta> tags for the configuration of the options? The mata-tag is allowed inside the <head> of a document and is valid inside the <body> since HTML5 too. The config options could then be set over the global data-* attributes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Since v3.12 the brython options can be configured with the non-standard html tag
<brython-options></brython-options>
. This is really nice and helps to configure the needed behavior. However, these are not standard html tags, it becomes difficult to use these config options with frameworks as react, where only standard tags are allowed to be injected.Would it be possible to support
<meta>
tags for the configuration of the options? The mata-tag is allowed inside the<head>
of a document and is valid inside the<body>
since HTML5 too. The config options could then be set over the globaldata-*
attributes.A possible configured page would then look like:
The advantage would be to use these options independent of the framework used.
Beta Was this translation helpful? Give feedback.
All reactions