# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 20
# self = https://watcher.sour.is/conv/bruztxq
@prologic and @adi I'm still here. Just a little busy remaking my site in mksw.
@lohn You mean mkws 🤣
@lohn You mean mkws 🤣
@lohn @prologic Glad you're doing that, how does it feel, how is it working for you, any issues @lohn
@lohn @prologic Glad you're doing that, how does it feel, how is it working for you, any issues @lohn
@lohn @prologic Glad you're doing that, how does it feel @lohn?
@prologic (#bruztxq) yes, exactly! Sorry about the mistyped. I have fat fingers.
@adi @prologic It's going very well till now. I'm porting the Hugo Theme (which is mess because I made it). And I want to maintain the files/URL structure (Imutable URLs is one of the #IndieWeb principles).
@adi @prologic So I abandoned the mkws.sh and creating one almost from the ground using pp.
@prologic @adi Which points me to a question. When I open a tag #! inside a template pp always calls sh.\nI swear I'll make my scripts POSIX compliant someday, but at this moment I just can't. Then, there is any way to make it calls bash instead?
@adi @prologic To make things more clear. I'm using frontmatter and a bash-yaml interpreter. And the markdown is converted in html by an AWK script. Which I made a version that converts it to Gopher too.
@prologic @adi The big problems is that frontmatter supports arrays so does bash. POSIX shell doesn't. There is no easy way to solve it right now.
@lohn @prologic Symlink bash to sh.
@lohn @prologic Symlink bash to sh.
@lohn @prologic There are ways to parse frontmatter in POSIX sh but if you prefer bash, assuming you're not breaking anything, symlink /bin/bash to /bin/sh. If not, build your own pp https://mkws.sh/pp/pp.c
@lohn @prologic There are ways to parse frontmatter in POSIX sh but if you prefer bash, assuming you're not breaking anything, symlink /bin/bash to /bin/sh. If not, build your own pp https://mkws.sh/pp/pp.c
@adi @prologic I recompiled. Better don't put bash where they made for dash. It's running like a charm now.\nAbout the frontmatter, the problem is the arrays. Do you have any suggestion on that? This is the only bash-only feature now, I think.
@lohn @prologic \n\n> I recompiled. Better don’t put bash where they made for dash. It’s running like a charm now.\nAbout the frontmatter, the problem is the arrays.\n\nNo arrays in POSIX sh, I remember reading somewhere about parsing frontmatter with POSIX sh, don't remember where tho.
@lohn @prologic

> I recompiled. Better don’t put bash where they made for dash. It’s running like a charm now.
About the frontmatter, the problem is the arrays.

No arrays in POSIX sh, I remember reading somewhere about parsing frontmatter with POSIX sh, don't remember where tho.
@lohn @prologic \n\n> I recompiled. Better don’t put bash where they made for dash. It’s running like a charm now.\nAbout the frontmatter, the problem is the arrays.\n\nNo arrays in POSIX sh, I remember reading somewhere about parsing frontmatter with POSIX sh, don't remember where tho.