backbone.marionette icon indicating copy to clipboard operation
backbone.marionette copied to clipboard

Add more live examples

Open denar90 opened this issue 7 years ago • 9 comments

We have a good start with making live examples, but we have to do more work to cover all docs by them. Here pages without live examples

denar90 avatar Sep 29 '16 10:09 denar90

I would like to collaborate on this issue, how can I create Live Examples?

CharlyJazz avatar Nov 07 '17 16:11 CharlyJazz

It'd be finding the areas within the docs that need them and forking off of jsfiddle.net/marionettejs/adhv48ky/ to make the examples. You can use your own url and we'll update them to the marionette account upon merge

paulfalgout avatar Nov 07 '17 16:11 paulfalgout

Should a live example be created for the 'Remove Region' and 'Adding Region' sections?

CharlyJazz avatar Nov 12 '17 18:11 CharlyJazz

I think the only place that an example would not improve the docs is if one already exists :-D

paulfalgout avatar Nov 13 '17 05:11 paulfalgout

Hi.

@paulfalgout, what you think about this live example for the section 'Adding Region'?

https://fiddle.jshell.net/charlyjazz/gze5ykov/16/

Do you think that is a good example? Or do we need an example more oriented to a real life scenario?

CharlyJazz avatar Nov 13 '17 22:11 CharlyJazz

Hmm I think a more real life scenario would be better. Perhaps something like:

getTemplate() {
  if (this.isAdmin) return AdminTemplate;

  return Template;
},
onRender() {
  if (this.isAdmin) {
   this.addRegion('admin', '#admin-panel');
   this.showChildView('admin', 'You are an admin!');
  }
}

paulfalgout avatar Nov 24 '17 18:11 paulfalgout

Hi @paulfalgout, what you think about this live example for the section 'Adding Region'?

http://jsfiddle.net/charlyjazz/gze5ykov/49/

CharlyJazz avatar Nov 26 '17 12:11 CharlyJazz

How can i view these live examples? In my here the site 'http://jsfiddle.net' can’t be reached.

Purlicue avatar Jan 19 '20 01:01 Purlicue

Hmm maybe you'd need a VPN? Not sure why jsfiddle wouldn't work

paulfalgout avatar Feb 05 '20 08:02 paulfalgout