added basic files

This commit is contained in:
somebee 2015-08-16 15:52:04 +02:00
parent 0c3ad83751
commit cfdb74aa0f
5 changed files with 2661 additions and 0 deletions

View File

@ -1 +1,17 @@
# hello-world-imba # 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.

2621
imba.js Normal file

File diff suppressed because it is too large Load Diff

13
index.html Normal file
View 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>

7
lib/app.js Normal file
View File

@ -0,0 +1,7 @@
(function(){
console.log("hello world");
q$$('body').append(t$('h1').setText("Hello world").end());
})()

4
src/app.imba Normal file
View File

@ -0,0 +1,4 @@
console.log "hello world"
$$(body).append <h1> "Hello world"