DEV Community

Cover image for IMBA is not MBA
chenge
chenge

Posted on

3 1

IMBA is not MBA

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.

SurveyJS custom survey software

JavaScript UI Libraries for Surveys and Forms

SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.

Learn more

Top comments (1)

Collapse
 
alexanderalemayhu profile image
Alexander Alemayhu

have you had a look at Imba v2? If not, you have been missing out on some amazing stuff. v2.imba.io/

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more