easily define apps with coffeescript - jasonette-template-coffeescript is a simple example
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Readme.md

Readme.md

example format conversion

jasonette app with coffeescript (and haml - to rubyfy it - haml is a template language with ruby support)

app = '$jason':
  head: title: 'SampleApp'
  body:
    header:
      title: 'SampleApp'
      style: shy: true
    sections: [
      items: [
          type: 'label'
          text: 'Address'
        ,
          type: 'image'
          url: "imageData (google/openstreetmap MapView image)"
        ,
          type: 'label'
          text: address
        ,
          type: 'label'
          text: 'Action'
        ,
          type: 'image'
          url: "imageData ()"
        ,
          type: 'label'
          text: 'This is an app description (you can run the action on that location, for example "redirect the stream" on that area)'
          #  TODO: add link
      ]
    ]

TODO: use HAML's coffeescript filter

:coffee #{app}

That will let me define the app in json

(and load in a webview in the other views)

jasonette is useful if you want to skip Cordova

Cordova is powered by the web, Jasonette brings to the native app development the power of web requests