samples

2 views
Skip to first unread message

neonstalwart

unread,
Dec 19, 2009, 10:59:44 PM12/19/09
to Blast Mojo
any code samples of how to use this?

even just something showing the script tags needed to get started and
a brief explanation of the startup cycle. maybe i haven't dug deep
enough yet...

thanks,

ben...

neonstalwart

unread,
Dec 20, 2009, 2:52:33 PM12/20/09
to Blast Mojo
actually... i was looking at src. now i see dist and so i think i've
probably figured out what script tags i need but still any guidance on
how to work with all the pieces would be good.

the api seems well documented - just looking for some sample usage to
get started.

thanks,

ben...

Loyal Chow

unread,
Dec 27, 2009, 3:55:04 AM12/27/09
to blast...@googlegroups.com
Hi Ben,

We're working on some starting tutorials, but before they're ready (in the new year), I've updated with a super-simple sample controller to hopefully give you some guidance. this has not been merged into blastradius master yet, but you can grab the code from my fork to try it out: http://github.com/loyalchow/Blast-Mojo
unzip the 1.1.4 zip, and you can see a hello-world sample app. There are basically 3 things to take notice of:
1) a controller has been "mapped" in the SiteMap.js, which instantiates controllers based on a matching css selector on the page
2) a sample controller has been created, which observes objects/events, and delegates to a command or behavior to execute when triggered. In this case, it is observing classes within the "context" of the mapped controller
3) a sample behavior has been created, which executes whenever the observed event in the controller is fired

it is not a highly-functional sample, but it begins to show the "plumbing" and the structure that Mojo provides, so hopefully this will help you get started. stay tuned for more info, demos, and tutorials in the new year!

Cheers,

Loyal

James Duncan

unread,
Dec 29, 2009, 6:38:38 PM12/29/09
to blast...@googlegroups.com

Thanks Loyal

Much appreciated!

Happy new year to everyone too

Cheers!
James

On Dec 27, 2009 3:55 AM, "Loyal Chow" <loya...@gmail.com> wrote:

Hi Ben,

We're working on some starting tutorials, but before they're ready (in the new year), I've updated with a super-simple sample controller to hopefully give you some guidance. this has not been merged into blastradius master yet, but you can grab the code from my fork to try it out: http://github.com/loyalchow/Blast-Mojo
unzip the 1.1.4 zip, and you can see a hello-world sample app. There are basically 3 things to take notice of:
1) a controller has been "mapped" in the SiteMap.js, which instantiates controllers based on a matching css selector on the page
2) a sample controller has been created, which observes objects/events, and delegates to a command or behavior to execute when triggered. In this case, it is observing classes within the "context" of the mapped controller
3) a sample behavior has been created, which executes whenever the observed event in the controller is fired

it is not a highly-functional sample, but it begins to show the "plumbing" and the structure that Mojo provides, so hopefully this will help you get started. stay tuned for more info, demos, and tutorials in the new year!

Cheers,

Loyal

On Sun, Dec 20, 2009 at 11:52 AM, neonstalwart <neonst...@gmail.com> wrote: > > actually... i ...

Reply all
Reply to author
Forward
0 new messages