Example of how to use extensions #1

Open
opened 3 days ago by justamoment · 8 comments

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?
Owner

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 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? 🤔
Poster

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!

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!
Owner

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!

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!
prologic added the
bug
label 3 days ago
Poster

Sure! Tell me if I can help with some template or whatever.

Sure! Tell me if I can help with some template or whatever.
Owner

Yeah actually maby you could have a crack at rewriting the README? 🤔

Yeah actually maby you could have a crack at rewriting the README? 🤔
Poster

I surely can, do you have some tips to keep in mind?

I surely can, do you have some tips to keep in mind?
Owner

@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
Poster

Roger! 🙋

Roger! 🙋
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: prologic/zs#1
Loading…
There is no content yet.