Formulas / dynamic blocks / extensions #2004
alexandergunnarson
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In addition to the option of putting plain/formatted text in a block, I'd like to be able to have a block be dynamic, i.e. create dynamic values à la Coda formulas. A dynamic block might be created with
/dyn
, and it would allow reference to the last Clojure expression in its body which it would interpret with Sci. It might look something like:Example 1
Example 2
Example 3
Example 4
Example 5
Applicability to other features
See also #2003 for how this might work in titles, and #845 for how this might play nicely with queries.
Applicability to "Athens as ubereditor"
In fact, this provides a way for defining arbitrary amounts of code within Athens — even whole libraries and apps, if we provide namespacing support — which opens up a whole new way of editing code and combining it with the broader world. Because Athens subsumes them, you don't need:
Plus the code is versionable (using DataScript history or equivalent), directly referable, and accessible via deep link. Granted, it's an open question how such an approach would play nicely with git, and how non-ClojureScript code would work, but in theory these problems are surmountable (e.g. as to the git problem, just output the code blocks to files based on their namespace).
Beta Was this translation helpful? Give feedback.
All reactions