<@U0737EPFZ> is there a way I can run a gist in <t...
# cfml-general
a
@abram is there a way I can run a gist in trycf.com "headlessly"? I suspect there might be abuse concerns in doing so, so perhaps not? Basically I was wanting to make a request that does the equiv of clicking the "Run Code" button, but just get the response content from the "Results" iframe back.
a
currently there aren’t any restrictions. You could perform the post in something like postman or insomnia, you’d just pass the form fields
code
and
asserts
. Is that what you’re after?
a
Oh OK. I'll have a gander. Cheers.
s
@Adam Cameron please do a little blog post if you get this working. I have a similar use case 🙂
a
@abram out of interest, what is the
asserts
one even for?
a
There's a primitive assertion library used for building tutorials. That section has been disabled for now, due to a change in the service I was using to house the database, and lack of time to migrate.
It allows you to write a test against the code and report back to the user (student) if it passed or failed.
1