bigpipe / pagelet

Pagelets are small re-usable standalone components
MIT License
54 stars 6 forks source link

Client side script initialization not practical #12

Open Swaagie opened 10 years ago

Swaagie commented 10 years ago

The client side script intialization being tied into the naming of the pagelet is a destructive pattern. Consider using the same pagelet two times, but with template content that is slightly different, hence you extend either of the two and choose a unique name. However that also means you now have to rewrite the client script, cumbersome.

3rd-Eden commented 10 years ago

Will be fixed one sandboxing is implemented as the source of the js file will be stored as string and evaluated once the pagelet is loaded.

Arnout Kazemier

On Jul 30, 2014, at 13:29, Martijn Swaagman notifications@github.com wrote:

The client side script intialization being tied into the naming of the pagelet is a destructive pattern. Consider using the same pagelet two times, but with template content that is slightly different, hence you extend either of the two and choose a unique name. However that also means you now have to rewrite the client script, cumbersome.

— Reply to this email directly or view it on GitHub.

Swaagie commented 10 years ago

Sure I just needed a mental note. While working on the npm interface I encountered some stuff I'd like us to discuss and I also know see why you opted for certain changes

3rd-Eden commented 10 years ago

We shall engage in an epic debate once I return.

Arnout Kazemier

On Jul 30, 2014, at 21:23, Martijn Swaagman notifications@github.com wrote:

Sure I just needed a mental note. While working on the npm interface I encountered some stuff I'd like us to discuss and I also know see why you opted for certain changes

— Reply to this email directly or view it on GitHub.

Swaagie commented 10 years ago

I do not expect you to read this anyways, shoooo :)