mirror of
https://onedev.site.tesses.net/crosslang/crosslangextras
synced 2026-02-09 01:25:46 +00:00
Change to onedev
This commit is contained in:
3
Tesses.CrossLang.WebSite/components/counter.tcrml
Normal file
3
Tesses.CrossLang.WebSite/components/counter.tcrml
Normal file
@@ -0,0 +1,3 @@
|
||||
<?component() name="Counter" ?>
|
||||
<p>Count is <?expr count++ ?></p>
|
||||
<?end?>
|
||||
36
Tesses.CrossLang.WebSite/components/shell.tcrml
Normal file
36
Tesses.CrossLang.WebSite/components/shell.tcrml
Normal file
@@ -0,0 +1,36 @@
|
||||
<?resource name="simple.min.css" route="/css/simple.min.css" ?>
|
||||
<?resource name="favicon.ico" route="/favicon.ico" ?>
|
||||
<?component(title,pages,body) name="Shell" ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>CrossLang - <?expr Net.Http.HtmlEncode(title) ?></title>
|
||||
<link rel="stylesheet" href="./css/simple.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<h1>CrossLang</h1>
|
||||
<nav>
|
||||
<ul>
|
||||
<?code
|
||||
each(var item : pages)
|
||||
{
|
||||
?>
|
||||
<li><a <?code if(item.active) { ?> aria-current="page" <?code } ?> href="<?expr Net.Http.UrlPathEncode(item.route) ?>"><?expr Net.Http.HtmlEncode(item.text) ?></a></li>
|
||||
<?code
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
<h1><?expr Net.Http.HtmlEncode(title) ?></h1>
|
||||
<?body?>
|
||||
<?end?>
|
||||
<footer>
|
||||
<p>Created using <a href="https://crosslang.tesseslanguage.com/">CrossLang</a> and <a href="https://simplecss.org/">SimpleCSS</a></p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
<?end?>
|
||||
8
Tesses.CrossLang.WebSite/cross.json
Normal file
8
Tesses.CrossLang.WebSite/cross.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"project_dependencies": ["../Tesses.CrossLang.Markup"],
|
||||
"info": {
|
||||
"type": "console"
|
||||
},
|
||||
"version": "1.0.0.0-prod",
|
||||
"name": "Tesses.CrossLang.WebSite"
|
||||
}
|
||||
35
Tesses.CrossLang.WebSite/pages/downloads.tcrml
Normal file
35
Tesses.CrossLang.WebSite/pages/downloads.tcrml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?page() route="/downloads" ?>
|
||||
<?code
|
||||
var pages = [
|
||||
{
|
||||
active = false,
|
||||
route = "/",
|
||||
text = "Home"
|
||||
},
|
||||
{
|
||||
active = true,
|
||||
route = "/downloads",
|
||||
text = "Downloads"
|
||||
}
|
||||
];
|
||||
?>
|
||||
<?Shell?>
|
||||
<?arg "Downloads" ?>
|
||||
<?arg pages ?>
|
||||
<?arg_component() ?>
|
||||
<h2>Source Code</h2>
|
||||
<ul>
|
||||
<li><a href="https://onedev.site.tesses.net/crosslang">CrossLang</a></li>
|
||||
<li><a href="https://onedev.site.tesses.net/crosslang/crosslangextras">CrossLang Essentials</a></li>
|
||||
</ul>
|
||||
<h2>Binaries</h2>
|
||||
<!--<ul>
|
||||
<li><a href="./downloads/windows">Windows</a></li>
|
||||
<li><a href="./downloads/mac">Mac</a></li>
|
||||
<li><a href="./downloads/linux">Linux</a></li>
|
||||
<li><a href="./downloads/wii">Wii</a></li>
|
||||
<li><a href="./downloads/iso">ISO (Burn to Disc)</a></li>
|
||||
</ul>-->
|
||||
<?end?>
|
||||
<?end?>
|
||||
<?end?>
|
||||
24
Tesses.CrossLang.WebSite/pages/index.tcrml
Normal file
24
Tesses.CrossLang.WebSite/pages/index.tcrml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?page() route="/" ?>
|
||||
<?code
|
||||
var pages = [
|
||||
{
|
||||
active = true,
|
||||
route = "/",
|
||||
text = "Home"
|
||||
},
|
||||
{
|
||||
active = false,
|
||||
route = "/downloads",
|
||||
text = "Downloads"
|
||||
}
|
||||
];
|
||||
?>
|
||||
<?Shell?>
|
||||
<?arg "Home" ?>
|
||||
<?arg pages ?>
|
||||
<?arg_component() ?>
|
||||
<p>This is the website for my programming language</p>
|
||||
<p>1 John 4:4: You, dear children, are from God and have overcome them, because the one who is in you is greater than the one who is in the world.</p>
|
||||
<?end?>
|
||||
<?end?>
|
||||
<?end?>
|
||||
BIN
Tesses.CrossLang.WebSite/res/favicon.ico
Normal file
BIN
Tesses.CrossLang.WebSite/res/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
1
Tesses.CrossLang.WebSite/res/simple.min.css
vendored
Normal file
1
Tesses.CrossLang.WebSite/res/simple.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
5
Tesses.CrossLang.WebSite/src/program.tcross
Normal file
5
Tesses.CrossLang.WebSite/src/program.tcross
Normal file
@@ -0,0 +1,5 @@
|
||||
var count = 0;
|
||||
func main(args)
|
||||
{
|
||||
Net.Http.ListenSimpleWithLoop(Router,4206);
|
||||
}
|
||||
Reference in New Issue
Block a user