Skip to content

docs: clarify dynamic inline script source detection - #240

Open
pralav-25 wants to merge 1 commit into
operaton:mainfrom
pralav-25:docs/clarify-inline-script-detection
Open

pralav-25 wants to merge 1 commit into
operaton:mainfrom
pralav-25:docs/clarify-inline-script-detection

Conversation

@pralav-25

Copy link
Copy Markdown
Contributor

Inline scripts in languages other than JUEL are treated as dynamic source expressions when their trimmed content begins with ${ or #{. Document this rule in the scripting guide's canonical Script Source section, including the accidental-match symptom, a language-specific comment workaround, and the distinction between external resource paths and loaded file contents.

This follows the separate scripting-guide suggestion in the review of #201 and does not depend on that PR. The wording was checked against ScriptUtil, StringUtil, ScriptFactory, and ResourceExecutableScript in the engine.

Validation: npm run typecheck, npm run build, generated-page inspection, and git diff --check passed using Node 24.22.1 and the existing npm lockfile. The build reports broken-link and anchor warnings elsewhere in the documentation; this change adds no links. Tests were not added or run, per contribution instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant