Am Tue, 26 Aug 2008 22:17:55 -0700 (PDT)
schrieb rahulb <RahulBenegal at gmail.com>:
> Hi Thomas,
> I have just installed the 0.5.3.
>
> The doc says that the maruku filter is used by default and links to
> the maruku homepage. However, when I copy the maruku file (http://
> maruku.rubyforge.org/maruku.md) into the content part of index.page,
> then i get errors.
>
> <code>
> Starting webgen...
> Generating tree...
> An error has occurred: undefined method `[]='' for nil:NilClass
> </code>
I can''t reproduce that error. When I paste that maruku document into
index.page everything works just fine. Could you package your website
and mail it to me? Would help a lot!
> 1. In case maruku is not being used, how can I install it.
> (I see maruku in the gems folder). I am aware of the ./ext folder
> also but not clear on what to add/mod in the init.rb file.
Maruku is used by default and automatically installed if you installed
webgen via Rubygems. The ext/ folder is used for writing extension in
Ruby, for example, to add a new tag or a new content processor.
> 2. The doc does not mention how extensions can be enabled. Where can I
> specify the filter/processor to be used.
All extensions shipped with webgen are automatically loaded when
needed. So, for example, if you never use .feed files, the extension
Webgen::SourceHandler::Feed will never be loaded and used.
The processor used on a page or template file is specified via the
default meta information. Have a look at the thread called "dumb
upgrade questions and complaining" where I show how to change the
default processing pipeline.
> 3. If a maruku document has its own properties specified in the same
> mail header format, can I add them to the properties at the top of the
> ".page" file? (see maruku.md mentioned above).
The options in mail header format used by maruku are not supported by
webgen. Instead, if you want to add options/meta information to a page,
specify them in the meta information block at the top of a page file.
For more information on the structure of such a file, have a look at
the Webgen Page Format reference at
http://webgen.rubyforge.org/documentation/webgen_page_format.html
For a list of available meta information keys have a look at the meta
information reference at
http://webgen.rubyforge.org/documentation/reference_metainfo.html
-- Thomas