Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
27fe3485
Commit
27fe3485
authored
18 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Clarify xjs_load() documentation.
Document the cwd global variable.
parent
5ed4d0a7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/websrvr.txt
+10
-8
10 additions, 8 deletions
docs/websrvr.txt
with
10 additions
and
8 deletions
docs/websrvr.txt
+
10
−
8
View file @
27fe3485
...
...
@@ -451,15 +451,17 @@ for(i=1; i<=10; i++) {
</html>
4.2 XJS-specific
command
s
-------------------------
4.2 XJS-specific
global methods and propertie
s
-------------------------
---------------------
The following JS commands are available to XJS files only.
xjs_load(filename)
Includes the specified file as though its contents were part of the
current file at the current position. Acts as though the current xjs
tag is closed before the file and re-opened after it. The filename
is assumed to be relative to the including file (or absolute.)
The contents of the load()ed file are in a separate function as far as
variable scope is concerned.
Runs the specified xjs file at the current position. Local variables
are NOT visible to xjs_load()ed pages. The filename is assumed to be
relative to the including file (or absolute.)
cwd
Contains the path that the current xjs script was loaded from and which
parameters to xjs_load() are assumed to be relative to. If you change
the value of cwd, it will change the location where xjs_load() will
check for files.
/* End of file */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment