-
Notifications
You must be signed in to change notification settings - Fork 83
Conversation
hum, if i understand this, its basically |
@ctalkington It's more general for render underscore template, I use it to render here is some snippet: define(['angularjs', './_'], function(ng, _) {
'use strict';
var module = ng.module('angular-underscore/filters/<filterName>', []);
var filter = _.bind(_.<filterName>, _);
var filterFactory = function() {return filter;};
module.filter('<filterName>', filterFactory);
return module;
}); feed define(['angularjs', './_'], function(ng, _) {
'use strict';
var module = ng.module('angular-underscore/filters/map', []);
var filter = _.bind(_.map, _);
var filterFactory = function() {return filter;};
module.filter('map', filterFactory);
return module;
}); If I understand |
this makes the second underscore related pull. I think we are going to need to rethink how underscore is used. thinking about having an actual underscore -> precompiled jst (existing) |
@floydsoft give me a week or so to talk over some ideas with @tkellen. i think we could go a few routes while keeping a multi-function task to handle some variations. |
IMO, |
i have a few ideas going. being that all these things require underscore so I want to contain them in a single "task" file with a single helper and aliases. |
another issue i have with render as a task, is that what are you rendering? its too generic for most people. i can think markdown and several other things that I might render. |
@ctalkington yeah, they are similar, it'd better be refactoring. |
@ctalkington may be make another |
@ctalkington Oh sorry, I misunderstand your sentence. |
in general, i dont think anyone is going to mind setting one option either, say
I actually like the idea of a markdown but that's a little dif from underscore. |
moving this discussion to #115. i think we can use some your logic but not in its current state. will touch base to get some input when I have some sound ideas ready though! thanks. |
Add
render
task to support render underscore template.