added basic support for serving snippets of code up to the UI#454
added basic support for serving snippets of code up to the UI#454mikedewar wants to merge 1 commit intonytlabs:masterfrom
Conversation
|
what kind of experience do we want here? If we agree that the block is basically an HTML/JS block and that editing HTML/JS is required, then things become much simpler. |
|
The way I would like to see this code used is to deliver carefully designed bits of HTML/JS to the user. The user would be able to adjust the position and size of the enclosing div by default; any other affordances would be provided by the delivered HTML/JS. Would it make sense for me to make a sample annotation macro? |
|
so, you would have a D3 chart that has some kind of drop down that populates with the available blocks that it could listen to? |
|
Sure!
|
|
@nikhan wrote, "Meaning that we'd have to create some kind of templating engine..." and I had a minor freakout :) So if I understand the discussion so far, this pull request is intended to lay the foundation for adding macros/comments to streamtools, but more work is required to get them in the GUI? If I'm wrong, please explain? |
|
yep, that's entirely right. but depending on how we want things to work in the interface, things in the backend may have to change. |
|
I think probably this needs a couple of examples before it's going to
|
so, for example:
returns