Default view as a code block.
This commit is contained in:
parent
f3a1927615
commit
72e0c775e5
@ -23,11 +23,12 @@ BreaApp >> defaultView [
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="color-scheme" content="light dark" />
|
<meta name="color-scheme" content="light dark" />
|
||||||
<link rel="stylesheet" href="css/pico.min.css">
|
<link rel="stylesheet" href="css/pico.min.css">
|
||||||
<title>Hello from', self appName, '</title>
|
<title>', self name, '</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main class="container">
|
<main class="container">
|
||||||
<h1>Hello world!</h1>
|
<h1>', self name, '</h1>
|
||||||
|
<p>Probando<p>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>'
|
</html>'
|
||||||
@ -47,7 +48,8 @@ BreaApp >> folder: aFileDirectory [
|
|||||||
BreaApp >> launch [
|
BreaApp >> launch [
|
||||||
| defaultRoute |
|
| defaultRoute |
|
||||||
defaultRoute := 'http://localhost:',self server server port asString, '/', self appName.
|
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
|
GoogleChrome openWindowOn: defaultRoute
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user