raku.org icon indicating copy to clipboard operation
raku.org copied to clipboard

execute examples on glot.io

Open ufobat opened this issue 6 years ago • 3 comments

It would be a nice feature if you could edit and execute the code of the examples on https://examples.perl6.org.

https://irclog.perlgeek.de/perl6/2018-03-23#i_15957524

Similar to the Rustbook (e.g. https://doc.rust-lang.org/book/second-edition/ch03-04-comments.html) or posts on https://rakudo.party/post/Perl-6-Seqs-Drugs-and-Rock-n-Roll

ufobat avatar Mar 23 '18 16:03 ufobat

That would be nice. I'm not sure about all the examples, however...

JJ avatar Mar 23 '18 16:03 JJ

FWIW, upcoming perl6.org update will include swapping to a dynamic app that will have glot.io API to run the examples on our home page. The examples.perl6.org site is not included in that update, but it's possible the in-webpage code runner could be added with a bit of JS to those sites, using perl6.org's backend.

zoffixznet avatar Mar 26 '18 00:03 zoffixznet

@zoffixznet sounds awesome! Thanks!

AlexDaniel avatar Mar 26 '18 00:03 AlexDaniel

Closing as duplicate of #81

coke avatar Oct 05 '23 03:10 coke