Hey @prologic from the documentation it's not clear how you would actually put together the example from the README section "Example of RSS generation".
I understand that it goes in the .zs directory but apart from that i'm lost.
Is there an example of how it works?
Hey @prologic from the documentation it's not clear how you would actually put together the example from the README section "Example of RSS generation".
I understand that it goes in the `.zs` directory but apart from that i'm lost.
Is there an example of how it works?
YOu'll will note the scripts in .zs/ and how they are called in the index.md as basically "functions".
For example if you had a script in .zs/hello then you can basically put anywhere in your Markdown (or HTML) file the functaionl call {{ hello }}.
Make sense? 🤔
I don't have any good docs, no, sorry about that 😅 I've been meaning to basically com;letely rewrite the README entirely 😅
That being said, the best examples are actually the [Yarn.social](https://yarn.social) website itself, which you can find the source of here:
https://git.mills.io/yarnsocial/yarn.social
YOu'll will note the scripts in `.zs/` and how they are called in the `index.md` as basically "functions".
For example if you had a script in `.zs/hello` then you can basically put anywhere in your Markdown (or HTML) file the functaionl call `{{ hello }}`.
Make sense? 🤔
I managed to make it work, I also noticed from the yarn.social repo that you can output markdown and it get rendered after the script is executed, this is a neat feature that needs to be known, it can help a lot in building your pages.
Thanks a lot!
Absolutely! 🤩
I managed to make it work, I also noticed from the yarn.social repo that you can output markdown and it get rendered after the script is executed, this is a neat feature that needs to be known, it can help a lot in building your pages.
Thanks a lot!
@justamoment Start with the structures of the yarnd/saltyim repos and go from there? ONce you nail down the basics of "Getting Started" then you can carve up a section on "Creating and using Templates and Layouts", "Creating and using Plugins" or something
@justamoment Start with the structures of the yarnd/saltyim repos and go from there? ONce you nail down the basics of "Getting Started" then you can carve up a section on "Creating and using Templates and Layouts", "Creating and using Plugins" or something
Hey @prologic from the documentation it's not clear how you would actually put together the example from the README section "Example of RSS generation".
I understand that it goes in the
.zs
directory but apart from that i'm lost.Is there an example of how it works?
I don't have any good docs, no, sorry about that 😅 I've been meaning to basically com;letely rewrite the README entirely 😅
That being said, the best examples are actually the Yarn.social website itself, which you can find the source of here:
https://git.mills.io/yarnsocial/yarn.social
YOu'll will note the scripts in
.zs/
and how they are called in theindex.md
as basically "functions".For example if you had a script in
.zs/hello
then you can basically put anywhere in your Markdown (or HTML) file the functaionl call{{ hello }}
.Make sense? 🤔
Absolutely! 🤩
I managed to make it work, I also noticed from the yarn.social repo that you can output markdown and it get rendered after the script is executed, this is a neat feature that needs to be known, it can help a lot in building your pages.
Thanks a lot!
Keep this issue open! I'll use it as an excuse to rewrite the freka'n gawd awful README 😅
zs
is really quite a nice tool really 🤣 And very powerful!Sure! Tell me if I can help with some template or whatever.
Yeah actually maby you could have a crack at rewriting the README? 🤔
I surely can, do you have some tips to keep in mind?
@justamoment Start with the structures of the yarnd/saltyim repos and go from there? ONce you nail down the basics of "Getting Started" then you can carve up a section on "Creating and using Templates and Layouts", "Creating and using Plugins" or something
Roger! 🙋