When URL-backed input is useful
URL-backed input works well when the sample is maintained elsewhere, when the payload is too large for a practical query string, or when the same landing page should always reflect a current example document.
Treease supports source-editor loading and right-side preview loading through dedicated URL parameters so the same mechanism can power import, reference, and compare tutorials.
Source and preview URL parameters
Loads fetched content into the source editor.
/editor?textUrl=https://raw.githubusercontent.com/loggerhead/treease-testdata/refs/heads/main/json/complex.1.json
Loads fetched content into the right-side preview pane.
/editor?rightTextUrl=https://raw.githubusercontent.com/loggerhead/treease-testdata/refs/heads/main/json/complex.1.json
Practical use cases
- Hosted sample payloads in product documentation.
- Support links that open the editor with a known reference document.
- Comparison landing pages that point to a baseline file and a current file.