worpet-bildet / blog

12 stars 4 forks source link

feat: add export scry path to json + to filesystem via clay #6

Closed morelazers closed 1 year ago

morelazers commented 1 year ago

Exporting to JSON should be something like this in the dojo but I can't quite get it to export anywhere other than base atm.

*=blog=/exports/latest/json +blog!blog-export <-- doesn't work, what am I doing wrong?

tadad commented 1 year ago

you do it like .test/json +blog!blog-export a few problems with this so far: I believe it only exports as a jammed noun (need to ask some people to confirm). It also exports (in its current form) as the $json type, not a json string that people would expect. Should be easy to change that aspect of it

tadad commented 1 year ago

just started playing around more and I think the clay option is a lot better on second thought just pass this card : [%pass / %arvo %c %info %blog %& ~[[/blog/1/html %ins html+!>(blog-1-html)]] [/blog/2/md %ins md+!>(blog-1-html)]]] etc.

that's basically it - there are two things you need to do now: make new html/md/css marks that convert to mime easily from a string. The existing marks for these files types probably aren't suited for the way that we are using them right now but that's fine, just need to write new ones and include those. Finally, just convert the maps we have (of md html css etc) into the $soba list. We'll talk through it today