Default view as a code block.

This commit is contained in:
Offray Vladimir Luna Cárdenas 2024-03-29 22:25:37 -05:00
parent f3a1927615
commit 72e0c775e5
1 changed files with 5 additions and 3 deletions

View File

@ -23,11 +23,12 @@ BreaApp >> defaultView [
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark" />
<link rel="stylesheet" href="css/pico.min.css">
<title>Hello from', self appName, '</title>
<title>', self name, '</title>
</head>
<body>
<main class="container">
<h1>Hello world!</h1>
<h1>', self name, '</h1>
<p>Probando<p>
</main>
</body>
</html>'
@ -47,7 +48,8 @@ BreaApp >> folder: aFileDirectory [
BreaApp >> launch [
| defaultRoute |
defaultRoute := 'http://localhost:',self server server port asString, '/', self appName.
self server GET: self appName -> self defaultView.
"self server removeAllDynamicRoutes."
self server GET: self appName -> [ self defaultView ].
GoogleChrome openWindowOn: defaultRoute
]