mirror of
https://onedev.site.tesses.net/crosslang/crosslangextras
synced 2026-02-08 17:15:45 +00:00
Add json listing for crosslang new
This commit is contained in:
@@ -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?>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?page() route="/" ?>
|
||||
<?Shell?>
|
||||
<?arg_component() ?>
|
||||
|
||||
<?end?>
|
||||
<?end?>
|
||||
<?end?>
|
||||
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user