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
Rewrite local JS/MJS asset imports that point at ragot.esm.min.js so user-authored vanilla JS can import RAGOT from /vendor/ragot.esm.min.js while builds resolve the emitted runtime location correctly.
Document vanilla JavaScript RAGOT interop, add static asset README files to the default and labs templates, and clarify when to use app/static/ versus project-root public/. Extend asset build coverage for rewritten static and surface script imports, including dynamic imports and external CDN imports.
Copy file name to clipboardExpand all lines: docs/app/content/docs/ragot/dom.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,3 +99,45 @@ class ChartModule(Module):
99
99
## Lower-level Ragot helpers
100
100
101
101
If you need to drop below the `dom.*` helper surface, the shipped Ragot runtime also includes lower-level primitives such as `createLazyLoader(...)` and `createInfiniteScroll(...)`. SPRAG's normal authoring path usually reaches those through `ui.LazyImage`, `@infinite_scroll`, and virtual-scroll integration, but they are part of the underlying runtime.
102
+
103
+
## Vanilla JavaScript with Ragot
104
+
105
+
For complex browser-only behavior, put a normal JavaScript module in
106
+
`app/static/` and import Ragot from the vendored runtime:
0 commit comments