guandalino
2010-Sep-18 13:15 UTC
[webgen-users] Output Specific Options, help with output setting
Hello! As my Apache document root is set to C:/Program Files/Apache Software Foundation/Apache2.2/htdocs, I''d like that webgen could save output html there. I found that the configuration option "output" that does this job, but unluckily it doesn''t always work (admitting it''s not my fault somehow or a problem relating to my setup). Anyway, that''s the weirdness: config.yaml (webgen 0.5.14) # This works. output: ["Webgen::Output::FileSystem", "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\webgen\d_and_d"] # This doesn''t: output: ["Webgen::Output::FileSystem", "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\webgen\b_and_b"] X:\Development\Ruby\webgen\b_and_b\template\simple>webgen -v Starting webgen... Updating tree... ...done in 0.5608 seconds Writing changed nodes... /rooms/room-1.en.html An error has occurred: Error while rendering </rooms/room-1.en.html>: Invalid argument - C:\Program Files\Apache Software Foundation \Apache2.2\htdocs\webge_and_b As a temporary workaround I could change Apache document root or move webgen generated output from the default location out to the current document root, but if I could get webgen do the job it''d be the best ;-) Many thanks!
Thomas Leitner
2010-Sep-19 07:13 UTC
[webgen-users] Output Specific Options, help with output setting
> config.yaml (webgen 0.5.14) > # This works. > output: ["Webgen::Output::FileSystem", "C:\Program Files\Apache > Software Foundation\Apache2.2\htdocs\webgen\d_and_d"] > > # This doesn''t: > output: ["Webgen::Output::FileSystem", "C:\Program Files\Apache > Software Foundation\Apache2.2\htdocs\webgen\b_and_b"]It seems that "\b" is handled specially by the Ruby YAML library in that it is assumed to be a control character. Use "\\b" instead and it should be fine! -- Thomas