File tree 1 file changed +20
-0
lines changed
hyperdiv_docs/pages/extending_hyperdiv
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,16 @@ class counter(hd.Plugin):
96
96
registers the plugin with the Hyperdiv Javascript
97
97
frontend. `counter.css` styles the plugin.
98
98
99
+ Query and hash args can be passed to plugin assets:
100
+
101
+ ```py-nodemo
102
+ class counter(hd.Plugin):
103
+ _assets_root = os.path.join(os.path.dirname(__file__), "assets")
104
+ _assets = ["counter.css?x=1", "counter.js?a=1&b=2"]
105
+
106
+ count = hd.Prop(hd.Int, 0)
107
+ ```
108
+
99
109
"""
100
110
)
101
111
@@ -149,6 +159,16 @@ class counter(hd.Plugin):
149
159
"""
150
160
)
151
161
162
+ with hd .alert (variant = "warning" , opened = True ):
163
+ hd .markdown (
164
+ """
165
+ Note that when using glob syntax, query args cannot be
166
+ meaningfully passed to local assets. `"js/**/*.js?x=1"` is
167
+ nonsensical and will cause Hyperdiv to fail to correctly
168
+ expand the glob.
169
+ """
170
+ )
171
+
152
172
p .heading ("### Remote Assets" )
153
173
154
174
docs_markdown (
You can’t perform that action at this time.
0 commit comments