Add json listing for crosslang new

This commit is contained in:
2025-05-26 13:10:46 -05:00
parent 7456bf9bc0
commit 67e115705e
13 changed files with 86 additions and 161 deletions

View File

@@ -1,14 +0,0 @@
<?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?>

View File

@@ -1,7 +0,0 @@
<?page() route="/" ?>
<?Shell?>
<?arg_component() ?>
<?end?>
<?end?>
<?end?>

View File

@@ -2,8 +2,11 @@ var count = 0;
func Pages.Index()
{
//use null when you wan't to use multiple tags but not emit a div or anything like that
return Components.Shell(
<null>
<h1>Hello, world</h1>
<span>Views: {++count}</span>
</null>
);
}