Frederick Ros wrote :
| So I think that to achieve this I will have to have both a new entry
| class, but also a new output plugin which can choose what language to
| render based on either the name of the template of the path where it
| reside ...

OK. Actually I tried that ... but the problem is the following: in the
skel directory I create 2 directories fr and en. Each of them contains,
for example, index.html.local ...
The main problem, is that the list of pages as build by build_pages is
something like .. 0, due to :

     path_storage = storage.path_storage( File.dirname( page_name ) )

in other words, as my page_name is for example fr/index, we're lloking
for all the entries present in the fr directory :(

Does anyone as an idea on how to fight this ???

The other solution would be to have in the skel directory, 2 files
fr_index.html.local and en_index.html.local, but this would mean that
the local plugin would be able to change th epath of the pages .. which
requires modification of regenerate to allow re-evaluation of full path
after plugin processing (which has been removed some time ago)


Any thought on this ??

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

Don't diddle code to make it faster - find a better algorithm.
            - The Elements of Programming Style (Kernighan & Plaugher)

Attachment: pgpLc2cG1YL2e.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