[ 
https://issues.apache.org/jira/browse/GROOVY-9975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17299198#comment-17299198
 ] 

Björn Kautler commented on GROOVY-9975:
---------------------------------------

I played with it a bit and proved I was right, almost everything is there 
already.

I basically did what I suggested, allowing CORS on the Groovy web console side,
and on the Kotlin playground component side changing the {{if}} so that Groovy 
is executable,
and changing the request that is made and understanding the result and it 
worked for the happy path.

I'm not that skilled in JS nowadays, so I'm not the right one to do this,
but it is not a really big task for someone skilled in JS to properly integrate 
the response into the component.

> Embeddable playground component
> -------------------------------
>
>                 Key: GROOVY-9975
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9975
>             Project: Groovy
>          Issue Type: New Feature
>            Reporter: Björn Kautler
>            Priority: Major
>
> The Kotlin documentation have a nice feature, that most examples shown there 
> are editable and executable right from inside the documentation. This is 
> really an amazing feature for a language documentation as you can see the 
> documented feature in action right away and can even directly play with it.
> There is even this: [https://www.npmjs.com/package/kotlin-playground]
> This is a script that anyone can use on his personal page or blog or whatever 
> to also have those nifty embedded executable Kotlin editors in their pages or 
> blogs.
> It would be really cool if there would be a similar component for Groovy too 
> that you can use and that maybe also the Groovy documentation would use for 
> its examples.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to