Namespaced component libraries #1269
oscarlevin
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Issue: there are lots of Doenet components, which is good because it promotes semantic markup. But we probably don't want components for everything (
<kenken size="6">would be better than hacking the graph element, but authors writing a calculus problem don't need to see this as an option). Currently there are chemistry-specific components.Idea: introduce namespaces for components. If someone wants to add a component for kenken, maybe also for sudoku, they create a namespace
puzzleso they would author<puzzle:kenken size="6">or<puzzle xmlns="https://puzzle.doenet.org" size="6">if they don't want to keep writing thepuzzle:prefix). Not sure how to tell doenet to load the components, maybe it is done automatically. A contributor could create such a library of components and import it or let Doenet adopt it.A first proof of concept would be to extract the chemistry components into a namespace (maybe
chem). This would serve as an example for new contributions as well.Please correct my language or let me know if I have missed part of our discussion at the session today (2026-06-03).
All reactions