Hi all,

As I was regenerating my blog, I found that my RSS feeds were no more
generated. Looking at recent changes it seems that the version 1.36 of
weblog.rb removed the line beginning by full_out_path in the following snippet:

    txt = output.load( template, vars )
    full_out_path = File.join( @output_path, vars[:page].link[1..-1] )

The purpose of this lin ewas to recompute the output path in case the
plugin changed it .... which was exactly the way my 'own-rss' plugin
does.
The reason for this is that I want to generate 2 feeds: index-fr.xml and
index-en.xml, but using skel named index-en.xml.newrss does not work as
the skel method to call is computed from the prefix, which is in this
case index-fr, and thus skel_index is not called ...
So I ask myself what is the best solution:

  1) Change the way the skel method is computed (for example change - to
     _ in file name) and add aliases to skel_index in my plugin
  2) Re-introduce the full_out_path computation after the call to the
     plugin

Any ideas ?

-- 
Frederick Ros aka Sleeper -- [EMAIL PROTECTED]

Use the "telephone test" for readability.
            - The Elements of Programming Style (Kernighan & Plaugher)

Attachment: pgpDWXXj1pdR0.pgp
Description: PGP signature

_______________________________________________
Hobix-is-the-way mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/hobix-is-the-way

Reply via email to