IMBA is not MBA
chenge

chenge @chenge

About: Ruby, and learn Rust, Go, Elixir, Erlang...

Location:
China
Joined:
Sep 10, 2017

IMBA is not MBA

Publish Date: Jan 14 '19
7 1

IMBA is a new web language. As the introduction on the site Scrimba is developed with IMBA.

Following is the code for Todo sample, clear to follow.

tag Todo < li
    def ontap
        data:completed = !data:completed

    def render
        <self .done=data:completed> data:title

tag App
    def addItem
        if @input.value
            data.push(title: @input.value)
            @input.value = ""

    def render
        <self.vbox>
            <form.header :submit.prevent.addItem>
                <input@input type='text'>
                <button> 'add'
            <ul> for item in data
                <Todo[item]>

var items = []
Imba.mount <App[items]>

Sample code of its site:

Imba.mount <nav#hero ->
    <a href='/guides'> "Get started"
    <a.github href=linkToGitHub> "GitHub"

I don't know what is MBA here. Go look IMBA.

Comments 1 total

Add comment