I've done a bit of playing with Ember.js and web2py a while back and posted 
up notes here:
* http://www.web2pyslices.com/slice/show/1641/web2py-and-emberjs-starterkit

This was a starting attempt to play and learn Ember.js.  Please note that I 
am not proficient in Ember/javascript frameworks.

The big thing that impacted what I was doing (besides asset/js/css 
organization) was dealing with the handlebars mark-up in web2py.
My work-around is as follows:

Edit the applications/ember2py/models/db.py and add the following HTML 
helper HB() ('HB' for Handlebars. See also 
https://groups.google.com/d/topic/web2py/-CrviALMVy8/discussion ):

# added to applicatons/embertest/models/db.py
 
class HB(DIV):
    tag = ''
    def xml(self):
        return '{{%s}}' % super(HB, self).xml()


Now, in the controller, whenever using the Handlebars markup, change from:

<script type="text/x-handlebars">
    <h2>Welcome to Ember.js</h2>
    {{outlet}
</script>


To:

<script type="text/x-handlebars">
    <h2>Welcome to Ember.js</h2>
    {{=HB('outlet')}}
</script>


I have recently started playing with AngularJS, and I am tempted to post 
something similar.
Would people be interested/should I continue & share?

-Rob Powell

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to