Skip to content

Instantly share code, notes, and snippets.

View yazz's full-sized avatar

Zubair Quraishi yazz

View GitHub Profile
function hello(name){
console.log("Hello " + name);
}
hello('node.js');
function hello(name){
console.log("Hello " + name);
}
hello('node.js');
# Eve Quick Start Tutorial
```eve
bind @browser
[tag: "div", text: "Hello, world"]
```
Hello world! At its core, Eve is a pattern matching language. You match patterns of data by searching a database, then update or create new data according to what you've found. In this example, we created a [record](https://witheve.github.io/docs/handbook/records/) that has two attributes: a tag attribute with the value `"div"`, and a text attribute with the value `"Hello, world"`. We [bound](https://witheve.github.io/docs/handbook/bind/) this record to the browser, which is how we displayed our venerable message.
Eve code is fenced off in blocks, which can be written in any order and embedded in Markdown documents. This is how Eve programs are written: everything in a code fence is a [block](https://witheve.github.io/docs/handbook/blocks/) of Eve code, while everything outside is prose describing the program. In fact, this quick start tutorial is an example of an executable Eve program! In the subsequent blocks, you w