generated from openpeeps/pistachio
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: George Lemon <[email protected]>
- Loading branch information
1 parent
f7ce40a
commit 0fbec7a
Showing
7 changed files
with
384 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
@js | ||
{ | ||
const watchout = new WebSocket('ws://127.0.0.1:6502/ws'); | ||
watchout.addEventListener('message', () => location.reload()); | ||
function connectWatchoutServer() { | ||
const watchout = new WebSocket('ws://127.0.0.1:6502/ws'); | ||
watchout.addEventListener('message', () => location.reload()); | ||
watchout.addEventListener('close', () => { | ||
setTimeout(() => { | ||
console.log('Watchout WebSocket is closed. Try again...') | ||
connectWatchoutServer() | ||
}, 300) | ||
}) | ||
} | ||
connectWatchoutServer() | ||
} | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
section.pt-5 > div.container > div.row > div#content-zone.col-lg-7.mx-auto | ||
div.text-center > img src="https://raw.githubusercontent.com/openpeeps/tim/main/.github/timengine.png" alt="Tim Engine" width="200px" | ||
h1.display-4.fw-bold: | ||
"This is Tim 👋 A super fast template engine for cool kids!" | ||
p.mb-4.h4.fw-normal.px-4 style="line-height: 1.8em": | ||
// tips: variables declared at template level | ||
// with default value are known at compile-time | ||
|
||
var logo = "https://raw.githubusercontent.com/openpeeps/tim/main/.github/timengine.png" | ||
var heading = "This is Tim 👋 A super fast template engine for cool kids!" | ||
var lead = // double quote in multi-line strings | ||
"Build sleek, dynamic websites and apps in a breeze with | ||
Tim Engine's intuitive syntax and powerful features. | ||
It's the template engine that keeps up with your creativity." | ||
|
||
section.pt-5 > div.container > div.row > div#content-zone.col-lg-7.mx-auto | ||
div.text-center | ||
img src=$logo alt="Tim Engine" width="200px" | ||
h1.display-4.fw-bold: $heading | ||
p.mb-4.h4.fw-normal.px-4 style="line-height: 1.8em": $lead | ||
@include "foot" // include footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.