Skip to content
Snippets Groups Projects
Commit 14a544ee authored by echicken's avatar echicken
Browse files

Adding template pages.

parent cb4027d7
No related branches found
No related tags found
No related merge requests found
<!--Document Title-->
<!--
The first comment in an XJS or HTML document will be used as its title in the
"pages" sidebar module (where the "Home" and "Forum" links appear.) In the
comment above, replace "Document Title" with whatever you want your page to
be called, or "HIDDEN" to prevent it from appearing in the list.
-->
<html>
<head></head>
<body class="background font">
<span class="title">HTML Document</span>
<br />
This is an HTML document. Use this template as a starting point for creating
other HTML content for your website.
</body>
</html>
\ No newline at end of file
//Document Title
/* The first comment line in an SSJS page will be used as its title in the
"pages" sidebar module (where the "Home", "Forum" and links to other
local pages appear.) Edit "Document Title" above as desired, replacing
it with "HIDDEN" if you do not want this page to appear in the list. */
load('webInit.ssjs');
print("<span class='title'>SSJS Page</span><br /><br />");
print("This is a Server-Side Javascript page. It's more cumbersome than an");
print("XJS page, but can be useful in certain situations.<br /><br />");
// SSJS example:
if(user.alias == webIni.WebGuest)
print("You are not logged in.");
else
print("You are logged in as " + user.alias);
\ No newline at end of file
Document Title
This is a text file. It can contain whatever you want, but bear in mind that
the first line of the file will be used as its title in the "pages" sidebar
module. If the first line of the file reads:
HIDDEN
then it will not be shown in the list. ("HIDDEN" will be removed from the
output when the page is displayed.)
\ No newline at end of file
<?xjs load('webInit.ssjs'); ?>
<!--Document Title-->
<!--
The first comment in an XJS or HTML document will be used as its title in the
"pages" sidebar module (where the "Home" and "Forum" links appear.) In the
comment above, replace "Document Title" with whatever you want your page to
be called, or "HIDDEN" to prevent it from appearing in the list.
-->
<html>
<head>
<link rel="stylesheet" type="text/css" href="../style/style.css" />
</head>
<body class="background font">
<span class="title">XJS Page</span>
<br />
This is an XJS page. It's an HTML document, but you can also insert inline
server-side javascript statements such as:
Hello, <?xjs write(user.alias); ?> welcome to <?xjs write(system.name); ?>!
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment