Fork me on GitHub

Releases

Version 0.3.5.1 (UPDATED)

Update: 0.3.5 contained a major bug that causes most applications to break. This has been fixed in the minor updated 0.3.5.1. Sorry for the inconvenience.

Version 0.3.5 of mobl has been released. Mobl is a language for rapid development of mobile web applications using HTML5 technologies. Programs written in the mobl language are compiled to a combination of HTML, Javascript and CSS and can run on any webkit browser, specifically those on iOS and Android devices.

New in this version since 0.3.4:

  • More robustness in the user interface when a property is null (now just shows null, no longer crashes)
  • No longer shows a blank screen while loading the application (or when Javascript is disabled).
  • Beginnings of a testing library (mobl::test). More a starting point than anything else. Want to contribute? Follow these instructions and send me a pull request (the code for mobl::test is here). Here’s a sample app, using tests:

    application testapp
    import mobl::ui::generic
    import mobl::test
    testSuite("math", {
      assertEqual(2, Math.round(3/2), "Rounding");
    });  
    testSuite("main tests", {
      assert("Zef" != "Zef", "this will likely fail");
    }); 
    screen root() {
      header("Tests")
      testRunner()
    }
    

To install, follow these instructions. To upgrade, simply upgrade from the update site (Via Help > Install new software).


Version 0.3.4

Version 0.3.4 of mobl has been released. Mobl is a language for rapid development of mobile web applications using HTML5 technologies. Programs written in the mobl language are compiled to a combination of HTML, Javascript and CSS and can run on any webkit browser, specifically those on iOS and Android devices.

New in this version compared to 0.3.3:

  • Various bug fixes
  • New basic mobl::i18n library. This enables the use of strings in applications using non-ASCII characters (you cannot currently use unicode in mobl code), e.g. Japanese. It has two functions: fetchLanguageBundle and _ (to lookup a key in the language file). Use as follows:

    application myapp
    import mobl::i18n
    import mobl::ui::generic
    resource lang/japanese.json
    screen root() {
      script {
        fetchLanguageBundle("lang/japanese.json");
      }
      header(_("title"))
      label(_("greeting", ["Zef Hemel"]))
    }
    

    The lang/japanese.json file contains something like this (%% are replaced with items from _‘s second argument array of strings):

    {
      "title": "日本語",
      "greeting": "こんにちは %%"
    }
    

To install, follow these instructions. To upgrade, simply upgrade from the update site (Via Help > Install new software).


Version 0.3.3

Version 0.3.3 of mobl has been released. Mobl is a language for rapid development of mobile web applications using HTML5 technologies. Programs written in the mobl language are compiled to a combination of HTML, Javascript and CSS and can run on any webkit browser, specifically those on iOS and Android devices.

New in this version compared to 0.3.2:

  • Bugfix where destroyAll() wouldn’t trigger an update to lists (thanks by Dave Gardner)
  • New async feature in controls, useful for operations that take a longer time to complete (e.g. database-intensive calls and web services calls):

    var results = async(SomeService.someCall())
    whenLoaded(results) {
      list(result in results) { ... }
    }
    

    this is equivalent to:

    var results : [ResultType] = null
    script {
      async {
        results = SomeService.someCall();
      }
    }
    whenLoaded(results) {
      list(result in results) { ... }
    }
    

    i.e. it performs the call asynchronously, allowing the UI to fully render, then, when the call returns, the result is assigned to the control/screen variable. The whenLoaded control simply takes an argument and if its value is null, it will show a “Loading…” screen, otherwise it will render its body.

To install, follow these instructions. To upgrade, simply upgrade from the update site.


Version 0.3.2

Version 0.3.2 of mobl has been released. Mobl is a language for rapid development of mobile web applications using HTML5 technologies. Programs written in the mobl language are compiled to a combination of HTML, Javascript and CSS and can run on any webkit browser, specifically those on iOS and Android devices.

New in this version compared to 0.3.1:

  • itemArrow control has been removed, the arrow is rendered for when the item control has an onclick handler.
  • Bug fixes related to auto updating of UI related to search collections (Entity.searchPrefix())
  • Runtime fixes.

To install, follow these instructions. To upgrade, simply upgrade from the update site.

1 Comment more...

Version 0.3.1

Version 0.3.1 of mobl has been released. Mobl is a language for rapid development of mobile web applications using HTML5 technologies. Programs written in the mobl language are compiled to a combination of HTML, Javascript and CSS and can run on any webkit browser, specifically those on iOS and Android devices.

New in this version compared to 0.3.0:

  • Bug fixes
  • Code completion and checks for styling
  • Fix of contextMenu control

To install, follow these instructions. To upgrade, simply upgrade from the update site.

1 Comment more...

Version 0.3.0

Today version 0.3.0 of mobl was released. Mobl is a language for rapid development of mobile web applications using HTML5 technologies. Programs written in the mobl language are compiled to a combination of HTML, Javascript and CSS and can run on any webkit browser, specifically those on iOS and Android devices.

New in this version:

  • Styling support. Documentation is upcoming.
  • Configuration file support. Configuration settings are no longer put in the application file itself, but have instead been moved to the config.mobl file in the mobl project.
  • cond for conditionally showing content in user interfaces has been renamed to when, and also has an else clause. So, code like this:

    cond(show) {
      ...
    }
    cond(!show) {
      ...
    }
    

    can now be rewritten to:

    when(show) {
      ...
    } else {
      ...
    }
    

To install, follow these instructions. To upgrade, simply upgrade from the update site.

1 Comment more...

mobl

Copyright © 2010-2020 mobl. All rights reserved.
iDream theme by Templates Next