EntryView = Backbone.View.extend({render : (options) ->$(".my_selector").render( { puredata : this.model.get('content') } , pureDirectives.entryDirective )
--
You received this message because you are subscribed to the Google Groups "JavaScript Templates Engine PURE" group.
To post to this group, send email to Pure-Unobtrusive...@googlegroups.com.
To unsubscribe from this group, send email to Pure-Unobtrusive-Rende...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/Pure-Unobtrusive-Rendering-Engine?hl=en.
To post to this group, send email to Pure-Unobtrusive-Rendering-Eng...@googlegroups.com.
To unsubscribe from this group, send email to Pure-Unobtrusive-Rendering-Engine+unsubscribe@googlegroups.com.
Hi,Were you able to get Purejs working with Google's Polymer? Polymer indeed looks interesting. I just want to make sure that we're able to manipulate that shadow DOM. Using Clojurescript, I've had issues instantiating Polymer in the webcomponents.js (also), that comes with Polymer. Does Purejs handle this cleanly?Thanks for all your work on this.
--
You received this message because you are subscribed to the Google Groups "JavaScript Templates Engine PURE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Pure-Unobtrusive-Rende...@googlegroups.com.
To post to this group, send email to Pure-Unobtrusive...@googlegroups.com.
Visit this group at http://groups.google.com/group/Pure-Unobtrusive-Rendering-Engine.
For more options, visit https://groups.google.com/d/optout.
_.extend(Backbone.View.prototype, { template: _.memoize(function(directives) { return this.$el.compile(directives); }, JSON.stringify), render: function(model) { var d = model || this.model; if (d instanceof Backbone.Collection) d = {'collection': d.toJSON()}; else if (d.toJSON) d = d.toJSON(); if (_.isEmpty(this.directives)) this.setElement(this.$el.autoRender(d)); else this.setElement(this.$el.render(d, this.template(this.directives))); return this; } });
DocumentPicker = Backbone.View.extend({ el: '#picker', directives: { '.models': { 'd<-collection': { '.name': 'd.name', '.id': 'd.id', '.open@href': '#docs/#{d.id}', '.edit@href': '#docs/#{d.id}/details',
'.remove@href': '#docs/#{d.id}/remove',
} }},
events: {
...},
...});