mirror of
https://onedev.site.tesses.net/crosslang/crosslangextras
synced 2026-02-08 17:15:45 +00:00
Add filter to package server and fix templates for devstudio
This commit is contained in:
2
Templates/webapp/.crossarchiveignore
Normal file
2
Templates/webapp/.crossarchiveignore
Normal file
@@ -0,0 +1,2 @@
|
||||
bin
|
||||
obj
|
||||
25
Templates/webapp/cross.json
Normal file
25
Templates/webapp/cross.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"dependencies": [
|
||||
],
|
||||
"info": {
|
||||
|
||||
"template_ignored_files": [
|
||||
"bin",
|
||||
"obj"
|
||||
],
|
||||
"template_info": {
|
||||
"type": "webapp",
|
||||
"license": "MIT"
|
||||
},
|
||||
"template_name": "webapp",
|
||||
"template_name_pretty": "Web Application",
|
||||
"template_project_dependencies": [
|
||||
],
|
||||
"repo": "https://onedev.site.tesses.net/CrossLang/CrossLangExtras",
|
||||
"homepage": "https://crosslang.tesseslanguage.com/",
|
||||
"type": "template",
|
||||
"description": "A web app (for webview or eventual cloud OS)"
|
||||
},
|
||||
"name": "Tesses.CrossLang.Template.WebApp",
|
||||
"version": "1.0.0.0-prod"
|
||||
}
|
||||
12
Templates/webapp/src/main.tcross
Normal file
12
Templates/webapp/src/main.tcross
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
func WebAppMain(args)
|
||||
{
|
||||
return (ctx)=>{
|
||||
if(ctx.Path == "/")
|
||||
{
|
||||
ctx.WithMimeType("text/html").SendText(<h1>Hello, world</h1>);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user