added basic files
This commit is contained in:
parent
0c3ad83751
commit
cfdb74aa0f
16
README.md
16
README.md
|
@ -1 +1,17 @@
|
|||
# hello-world-imba
|
||||
|
||||
Tiny template for testing out Imba in the browser.
|
||||
|
||||
## Installing Imba
|
||||
|
||||
> npm install -g imba
|
||||
|
||||
## Compiling files
|
||||
|
||||
After installing Imba, navigate to the root directory in your terminal, and type:
|
||||
|
||||
imba watch src/
|
||||
|
||||
This will start watching for .imba-files in src/ and automatically compiling them into lib/.
|
||||
|
||||
index.html can be opened in your browser as a file.
|
|
@ -0,0 +1,13 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Hello World</title>
|
||||
<meta charset="utf-8">
|
||||
<!-- include the imba library -->
|
||||
<script src="imba.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- your script -->
|
||||
<script src="lib/app.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,7 @@
|
|||
(function(){
|
||||
|
||||
console.log("hello world");
|
||||
|
||||
q$$('body').append(t$('h1').setText("Hello world").end());
|
||||
|
||||
})()
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
console.log "hello world"
|
||||
|
||||
$$(body).append <h1> "Hello world"
|
Loading…
Reference in New Issue