|
Here is a snapshot of this blog (blog.tar.gz). I really find it easy
to keep my blog in this way and maybe other programmers might agree with me.
As I started filling this blog the obvious step to follow was to use individual
files for each entry, so I created a directory called 2002 and that's where
I'm adding comments. I can use ispell on each log entry =)
I had to include the file in some way, so I tried to use the tag
<hb.read> that gets replaced with the contents of a file. That would
be nice if I only needed to include plain-old text, but I need to include
HB code. I don't know if there is a tag that can do what I want
to do, I need something like <hb.include> that can allow me to include
code dynamically. Right now I am using the :include command, that lets me
include a file with the definition of the code I need to use, but there is
something I don't like with this approach: I have to make an include that
could cause side effects and I have to make changes in two places to get
the log included.
-------------
:include 2002/004-hblog.hb
<blog.add
title='My experience with HBLogger / vim user'
topic='hblog'
date='2002-11-21'
_=<004-log>>
-------------
I don't know whether what I need is implemented in HB or not, but I'd like
to have a tag: <hb.include>. By default it could just include a file as
:include does, but we could add options that can either: forbid/allow the
definition of sections outside the scope of the file and allow/forbid the use
of sections that are defined "outside" the included code. The included code
could include other files as well.
Features I'm planning to add to the HBLogger module:
- Add tags to iterate thru topics in the same way do with the blog entries.
- Add options to this tags so we can access the counter of the first and the
last log (this will alow us to build a simple index)
- Add a tag or an option to print how many entries are on a given topic.
- Add an option to the <blog.show> and/or <blog.show.skip> tags
so we can restrict the iteration to the entries of a given topic.
So far I've only needed the first three. Briefly stated, the
<blog.topic.show> tag is likely to change.
|