starplate icon indicating copy to clipboard operation
starplate copied to clipboard

Create option to prepend template

Open chrisabrams opened this issue 9 years ago • 3 comments

I'm still trying to wrap my head around the project, but I believe this is where the template is actually being added to the view? https://github.com/littlstar/starplate/blob/master/src/view.js#L208

If so, could it be possible to make an option to prepend?

Maybe render gets a second argument, with optional options? Such as:

render(document.body, {placement: 'prepend'})

chrisabrams avatar Dec 31 '15 01:12 chrisabrams

Yeah I think that would be great. I'm not at my computer right now, but we'd happily accept a PR!

On Wed, Dec 30, 2015, 5:40 PM Chris Abrams [email protected] wrote:

I'm still trying to wrap my head around the project, but I believe this is where the template is actually being added to the view? https://github.com/littlstar/starplate/blob/master/src/view.js#L208

If so, could it be possible to make an option to prepend?

— Reply to this email directly or view it on GitHub https://github.com/littlstar/starplate/issues/6.

jwerle avatar Dec 31 '15 02:12 jwerle

Me either :O but expect a PR soon!

chrisabrams avatar Dec 31 '15 02:12 chrisabrams

@chrisabrams Cool, I've added you as a collaborator to this project !

jwerle avatar Dec 31 '15 19:12 jwerle