mirror of
https://onedev.site.tesses.net/crosslang/crosslangextras
synced 2026-02-08 17:15:45 +00:00
Get far on package manager
This commit is contained in:
2
Templates/emptyweb/.crossarchiveignore
Normal file
2
Templates/emptyweb/.crossarchiveignore
Normal file
@@ -0,0 +1,2 @@
|
||||
bin
|
||||
obj
|
||||
14
Templates/emptyweb/components/shell.tcrml
Normal file
14
Templates/emptyweb/components/shell.tcrml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?component(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>Hello, world</title>
|
||||
</head>
|
||||
<body>
|
||||
<?body?>
|
||||
<?end?>
|
||||
</body>
|
||||
</html>
|
||||
<?end?>
|
||||
24
Templates/emptyweb/cross.json
Normal file
24
Templates/emptyweb/cross.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "Tesses.CrossLang.Template.EmptyWebsite",
|
||||
"version": "1.0.0.0-prod",
|
||||
"info": {
|
||||
"maintainer": "Mike Nolan",
|
||||
"type": "template",
|
||||
"repo": "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
|
||||
"homepage": "https://crosslang.tesseslanguage.com/",
|
||||
"license": "MIT",
|
||||
"template_name": "emptyweb",
|
||||
"description": "An empty website with my template engine",
|
||||
"template_info": {
|
||||
"type": "console"
|
||||
},
|
||||
"template_project_dependencies": [
|
||||
{
|
||||
"name": "Tesses.CrossLang.Markup",
|
||||
"version": "1.0.0.0-prod"
|
||||
}
|
||||
],
|
||||
"template_extra_text_ftles": [],
|
||||
"template_ignored_files": ["bin","obj"]
|
||||
}
|
||||
}
|
||||
8
Templates/emptyweb/pages/index.tcrml
Normal file
8
Templates/emptyweb/pages/index.tcrml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?page() route="/" ?>
|
||||
<?Shell?>
|
||||
<?arg_component() ?>
|
||||
<h1>Hello, world</h1>
|
||||
<span>Views: <?expr ++count ?></span>
|
||||
<?end?>
|
||||
<?end?>
|
||||
<?end?>
|
||||
5
Templates/emptyweb/src/program.tcross
Normal file
5
Templates/emptyweb/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