- This is the convention for routing a macro to some code that has not been loaded yet.
- For more flexibility, either:
- use a routing macro that redirects execution based on either:
- its first parameter
- Thus instead of e.g.
{{m1 arg1 arg2}}
to use e.g.{{k m1 arg1 arg2}}
- Thus instead of e.g.
- some html attribute in the macro’s definition
- read in the entry function with
.dataset
or.getAttribute
- read in the entry function with
- its first parameter
- implement your own routing by modifying e.g.
function runPageByName
- For example, you could possibly force all code-pages under namespace
kits
, e.g. withlogseq.api.get_page("kits/" + pageName)
- This is just some untested idea.
- For example, you could possibly force all code-pages under namespace
- move to Synthesis
- It can run code just like kits, but at the level of blocks.
- use a routing macro that redirects execution based on either:
1 Like