*Absolute.js*
It's a front-end controller framework for jaggery. As opposed to Caramel -
Absolute.js follows a controller first approach to MVC.
Below diagram shows the difference of Caramel and Absolute.js
[image: Inline image 1]
What absolute.js lacks at the moment is the ability to intercept the view
depending on the theme. This is a functionality provided by Caramel.
I see Caramel as a theming framework rather than an MVC framework. We can
combine both principles and build better framework. Then we will be
overriding controller functions as opposed to the pages (.jag files).
I have made the resolve functions pluggable to absolute.js to support any
kind of routing functions required.
[image: Inline image 2]
With the above method we can follow routes as -
/publisher/api - API route
/publisher/{assetType}/{controller}/{view}
Eg:------------------------------------------
/publisher/mobileapps/main/index
If a person calls the /publisher/ this will call the main controller's
index function which resides in a file called main.js in assets folder. For
more understanding please go through the github project.
Thanks.
On Tue, Jul 30, 2013 at 9:09 AM, Chan <[email protected]> wrote:
> Hi all,
> We have come to an architecture that will work in parallel with
> absolute.js as well as caramel using each of the mentioned frameworks's
> plus points.
>
> *Store*
> Mobile Store will be developed according the generic store mechanisms of
> overriding assets. All the API paths required will be at the apis.jag
> located in the mobileapp asset folder. We will be adding some additional
> partials required for the device level manipulations for the store.
>
> *Publisher*
> We are going to redesign the Publisher main architecture and make it
> according to the caramel themes.
>
> Below is the diagram of how a request will travel through the Publisher
>
> [image: Inline image 1]
>
> Absolute.js will act as the front-end controller which maps controllers to
> requests. The github repo for the sample is at -
> https://github.com/dulichan/codewolf.
>
> For those who are not familiar with Absolute.js -
> *Absolute.js*
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2Mobile
> Lean.Enterprise.Mobileware
> * ~Email [email protected]*
> * ~Mobile +94712112165*
> * ~Website dulithawijewantha.com
> *
> * ~Blog blog.dulithawijewantha.com<http://dulichan.github.io/chan/>
> *
> * ~Twitter @dulitharw <https://twitter.com/dulitharw>*
>
--
Chan (Dulitha Wijewantha)
Software Engineer - Mobile Development
WSO2Mobile
Lean.Enterprise.Mobileware
* ~Email [email protected]*
* ~Mobile +94712112165*
* ~Website dulithawijewantha.com
*
* ~Blog blog.dulithawijewantha.com<http://dulichan.github.io/chan/>
*
* ~Twitter @dulitharw <https://twitter.com/dulitharw>*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture