Hi,
For my own legacy plugins (<footnote>, <rot13> and <isbn>, see
in
archvies for more info), I''ve written a ContentConverter to handle
them in 0.4.
This content converter contains, for now, the following code
class NdxConverter < ContentConverters::DefaultContentConverter
infos( :name => ''ContentConverter/NdxConverter'',
:author => "Nicolas Delsaux",
:summary => "Just a hack to allow me to use my old-style tags in
modern Webgen"
)
HandlerPlugin.register_handler ''ndx''
def call( _content )
puts "some content found"
"<b>"+_content+"</b>"
end
end
When calling webgen show config with 0.4, it well display my
NdxConverter as an existing converter, but without any associated
format :
ContentConverter/NdxConverter
Summary Just a hack to allow me to use my old-style
tags in modern Webgen
Author Nicolas Delsaux
Notice there is no "handler for" info.
However, when specifying in a page
--- content, ndx
I''ve got the following error :
ERROR -- Invalid page file <C:/Documents and
Settings/Maison/Bureau/nicolas-dels
aux.is-a-geek/src/Culture/Science-fiction/catherine_dufour.page>: Invalid
conten
t format specified: ndx
I think my issue come from the unspecified ''handler for'' info.
How can
I specify it ?
Furthermore, how is the order of the various content converters defined ?
--
Nicolas Delsaux
N''imprimez ce mail que si vous ne savez pas le lire sur
l''?cran : les
?lectrons se recyclent bien, le papier, beaucoup moins bien.