Version 0.3.8 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.7:

  • Bug fixes
  • Validation support for textField, numField control:

    application test
    import mobl::ui::generic
    function lengthValidator(s : String) : String {
      return s.length < 10 ? "" : "Too long, max 10";
    }
    screen root() {
      var s = "Short string"
      header("Validated")
      group {
        item {
          textField(s, validator=lengthValidator)
        }
        item {
          when(allInputValid) {
            "Everything valid!"
          }
        }
      }
    }
    

    The allInputValid global variable signifies if there are any validation error or not. A validator function should return an empty string when everything is OK, otherwise an error message to display.

Note: After upgrading, remove the www directory in your project and recompile everything.

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