Blogrite has been having a steady grow since I announced it; slow but growing still. Single pages finally work and I'm pretty happy with the results. Thanks to Ruben Fonseca
for helping me out with this issue
I had bugging me for quite some time.
I have reached a milestone. The next thing I need to build is an index page that inevitably fetches all the posts I have. But how am I supposed to do that with files
? If I didn't build Blogrite to allow multiple content providers, I would fix the posts' location into the filesystem and perform system calls like
or something else. I wouldn't have to think about an index file that would be built everytime I write something new, in order to increase performance. But since this is not the case, I need to come up with a solution.
What I do know is the responsability of getting the index content is the provider's.
- If I hosted content live along with the system – like I mentioned above –,
tail system calls would be fine.
- If I used Git, I could use a post-commit hook and have it change that post info in an index file.
- Dropbox would be a totally different story. Are there any hooks in the service for automated scripts? (honestly I don't think there are, feel free to prove me wrong!)
All of this considering an automated index page. There might be another ways of accomplishing this. I'm open to suggestions, throw 'em away.