[Klone-users] how to create "virtual directories"
thomas fossati
tho at koanlogic.com
Wed Jan 28 21:04:09 EST 2009
Hi Richard,
On Jan 28, 2009, at 10:22 PM, Richard KLINDA wrote:
> Hello, I don't know what is the right term, but I would like to
> create a
> simple blog for myself, that has a wordpress like link structure, like
>
> http://www.example.org/blog/2009/01/28/foo-bar-baz.html
>
> How is it possible to do this with klone (I would like to have one kl1
> file that generates the pages dynamically)?
>
> I know I could do something like this, but this is not what I want:
>
> www.example.org/blog.kl1?title=foo-bar-baz
are you just talking about article retrieving or you're also concerned
in the article upload phase ?
The following thoughts apply in case your question is about the fetch
structure of your application:
1) use the fs supplier (--enable_sup_fs) and let the "edit.kl1" page
create the needed hierarchy in the file system where the html article
will be saved (i.e. 1:1 mapping between the file system and published
URL);
2) become a beta tester for the "kilt" supplier (that we've recently
committed to HEAD) which allows you to do regexp-based URL
dispatching, pretty much like Django does. This way you could use a
virtual URL hierarchy and let klone handle the linking to the (flat?)
file system resource.
Hope it helps.
ciao, t.
More information about the Klone-users
mailing list