From m.franzl at aon.at Wed Oct 1 17:58:34 2008 From: m.franzl at aon.at (Michael Franzl) Date: Wed, 01 Oct 2008 23:58:34 +0200 Subject: [webgen-users] Webgen Bug, Maruku Bug, Questions, Suggestions Message-ID: <48E3F28A.9040204@aon.at> Webgen Bug ---------- I've detected a bug in Webgen/Maruku. If you declare two headers with the same name, like this ##Animals ###Animals webgen stops with undefined meththod `[]=' for nil:NilClass Speaking of Maruku... Maruku Bug ---------- I found out that it doesn't parse this simple example: before text +-- this should become a div =-- after text I posted this on Maruku Rubyforge one month ago and also sent an email to Andrea, but he hasn't responded since then. Is Maruku still developed actively? Feed Question ------------- I would like to create feeds, but I'm not sure how to write it, even after reading the documentation of Webgen::SourceHandler::Feed. Can you give an example for the `entries` metainfo key when specifying a set of files? Is it possible to create the feed from other blocks than `content`? Webgen::SourceHandler::Copy Question ------------------------------------ How can I teach this Sourcehandler to copy also files like *.php or *.htc? Suggestions ----------- I worked extensively with Webgen in the last months. There are a few suggestions I have for future features. Currently, I worked around the following issues with Bash pre- and postprocessing. * If a link is set to the current page via Maruku syntax, then a link is displayed even if website.link_to_current_page is set to true in config.yaml. Ideally, this shouldn't be. * I was in a situation where I had both files and subdirectories in a menu, and I wanted two separate menus for the files and the directories. Maybe it would have its uses to distinguish in tag.menu.used_nodes: between files and directories. Thanks a lot, Michael From m.franzl at aon.at Wed Oct 1 18:02:26 2008 From: m.franzl at aon.at (Michael Franzl) Date: Thu, 02 Oct 2008 00:02:26 +0200 Subject: [webgen-users] Webgen Bug, Maruku Bug, Questions, Suggestions In-Reply-To: <48E3F28A.9040204@aon.at> References: <48E3F28A.9040204@aon.at> Message-ID: <48E3F372.5030605@aon.at> > * If a link is set to the current page via Maruku syntax, then a link > is displayed even if website.link_to_current_page is set to true in > config.yaml. Ideally, this shouldn't be. Correction: website.link_to_current_page is set to FALSE From andrea at cds.caltech.edu Wed Oct 1 17:23:25 2008 From: andrea at cds.caltech.edu (Andrea Censi) Date: Wed, 1 Oct 2008 14:23:25 -0700 Subject: [webgen-users] Webgen Bug, Maruku Bug, Questions, Suggestions In-Reply-To: <48E3F28A.9040204@aon.at> References: <48E3F28A.9040204@aon.at> Message-ID: > I found out that it doesn't parse this simple example: > > before text > +-- > this should become a div > =-- > after text > > I posted this on Maruku Rubyforge one month ago and also sent an email to > Andrea, but he hasn't responded since then. Is Maruku still developed > actively? When I have the time :-( -- Andrea Censi PhD student, Control & Dynamical Systems, Caltech http://www.cds.caltech.edu/~andrea/ "Life is too important to be taken seriously" (Oscar Wilde) From t_leitner at gmx.at Thu Oct 2 05:30:39 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 2 Oct 2008 11:30:39 +0200 Subject: [webgen-users] Webgen Bug, Maruku Bug, Questions, Suggestions In-Reply-To: <48E3F28A.9040204@aon.at> References: <48E3F28A.9040204@aon.at> Message-ID: <20081002113039.25bfed3d@77.118.151.107.wireless.dyn.drei.com> > Webgen Bug > ---------- > > I've detected a bug in Webgen/Maruku. If you declare two > headers with the same name, like this > > ##Animals > ###Animals > > webgen stops with > > undefined meththod `[]=' for nil:NilClass Okay, there are two problems here: 1. Maruku should not generate the same id attribute here because id attributes have to be unique in one file. 2. It's nonetheless a bug in webgen which I will investigate. However, in the development version this part has changed, so it may take some time to fix this. As a work around you can do the following: ## Animals {: #animals1} ### Animals {: #animals2} > Feed Question > ------------- > > I would like to create feeds, but I'm not sure how to write > it, even after reading the documentation of > Webgen::SourceHandler::Feed. Can you give an example for the > `entries` metainfo key when specifying a set of files? Is it > possible to create the feed from other blocks than `content`? This is the feed file used by the webgen website: --- title: Webgen News description: webgen - static website generation made easy site_url: http://webgen.rubyforge.org/ author: Thomas Leitner author_url: http://webgen.rubyforge.org number_of_entries: 10 rss: false entries: [rel*.html] So, entries has to be an array of LCNs patterns. It is currently not possible to use any other block since the name is hard coded. However, if you need this I could provide support for an additional option for specifying the block name. > Webgen::SourceHandler::Copy Question > ------------------------------------ > > How can I teach this Sourcehandler to copy also files like > *.php or *.htc? Have a look at http://webgen.rubyforge.org/documentation/manual.html#website-configfile - especially the patterns configuration helper. > Suggestions > ----------- > > I worked extensively with Webgen in the last months. There > are a few suggestions I have for future features. Currently, > I worked around the following issues with Bash pre- and > postprocessing. > > * If a link is set to the current page via Maruku syntax, > then a link is displayed even if > website.link_to_current_page is set to true in config.yaml. > Ideally, this shouldn't be. Could you please show me an example of this syntax? You are using the relocatable tag, aren't you? If you use This is a [link]({relocatable: ../some_file.html}) to a page. then the relocatable tag only returns the correct relative path and Maruku generates the link. So there is no way for webgen to interfere with the link creation. However, a link tag will possibly appear in one of the next version which could solve this problem. > * I was in a situation where I had both files and > subdirectories in a menu, and I wanted two separate menus > for the files and the directories. Maybe it would have its > uses to distinguish in tag.menu.used_nodes: between files > and directories. Okay, will think about that. Thanks! -- Thomas From nicolas.delsaux at gmail.com Sat Oct 4 10:25:47 2008 From: nicolas.delsaux at gmail.com (Nicolas Delsaux) Date: Sat, 4 Oct 2008 16:25:47 +0200 Subject: [webgen-users] strange error Message-ID: <418361960810040725q3396e32u3224d09dff3bcce@mail.gmail.com> Hi all, After a long hiatus, I've started again to look at webgen internals. However, this time my goal has totally changed (for those not in the know-how, I planned to use webgen as my main website, with advanced generationf eatures (like grabbing isbn infos for books I wrote about). Now, with the rise of life aggregators and the such, and the fact I now publish all my content on dedicated sites, i've started thinking about using webgen as a life aggregator. For that, I've written a plugin which, given an OPML file, downloads all entries and generates files for these entries, with supposed unique ids. All that is working. Starting testing sitre generation, i was a little in trouble with maruku going in my way (but rather fast found a solution to change default_processing_pipeline:). However, i now have another issue. My process involves adding identification metadata in meta block, like in the following extract : ======================================== --- title: [BienBienBien] Les cochons dans l'open space rss_link: http://riduidel.posterous.com/bienbienbien-les-cochons-dans guid_link: http://riduidel.posterous.com/bienbienbien-les-cochons-dans filemtime: Thu, 25 Sep 2008 13:03:00 +0200 ---

Le bouquin dont ils parlent au début, je n'ai pas vraiment besoin de le lire tant ça ressemble à une caricature (et parfois, même pas) de mes différents boulots.
En revanche, l'analyse du vocabulaire d'entreprise est totallement criante de vérité.

Tenez, allez donc voir ======================================== > > >>From the error message I get when launching webgen on this file : > > C:\Documents and Settings\Maison\Mes > documents\webgen\lifestream>webgen Starting webgen... > Generating tree... > An error has occurred: Error reading source path > : > syntax error on line 2, col -1 : `rss_link: > http://riduidel.posterous.com/bienbienbien-les-cochons-dans > guid_link: http://riduidel.posterous.com/bienbienbien-les-cochons-dans > filemtime: Thu, 25 Sep 2008 13:03:00 +0200 > > I can see something is quite wrong. But what ? And how can I correct > that ? Recall that the meta information part needs to be a valid YAML hash. However, when YAML parses [BienBienBien] it assumes that the value for the title is an array and not a string. So you need to escape your string by wrapping it in double quotes (single quotes won't work since you are already using one in the title), like this: --- title: "[BienBienBien] Les cochons dans l'open space" rss_link: http://riduidel.posterous.com/bienbienbien-les-cochons-dans guid_link: http://riduidel.posterous.com/bienbienbien-les-cochons-dans filemtime: Thu, 25 Sep 2008 13:03:00 +0200 --- After this change, the meta information block loaded fine in my tests. -- Thomas From t_leitner at gmx.at Sun Oct 5 02:53:55 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Sun, 5 Oct 2008 08:53:55 +0200 Subject: [webgen-users] Rename language code + link to source In-Reply-To: <20081004140310.GA5244@mbwg.de> References: <20081004140310.GA5244@mbwg.de> Message-ID: <20081005085355.724bfede@77.119.22.135.wireless.dyn.drei.com> Am Sat, 4 Oct 2008 16:03:10 +0200 schrieb Matthias Kirschner : > Hi all, > > I am using webgen 0.4.7 and I have two question. > > 1. would like to do the following: have index.de.html, index.en.html, > index.fr.html, index.it.html, ... > > But {langbar: } should not display > [de | en | fr | it | ...] but > [Deutsch | English | Fran?ais | Italiano | ...] This is not possible (even in the 0.5.5 version). You could rewrite the plugin if you want to do that. > 2. I would like to have a link to the original file from src/ in the > footer. Background: Someone can just click on the file, translate it > and sent it via e-mail to me so I can upload it. > (http://www.fsfeurope.org is using that system, too.) This is possible in 0.4.x (very easy with 0.5.x). However, the easy way of using the File/CopyHandler to just copy the page files won't work due to the used node resolution code of File/PageHandler. The following plugin can be put in the plugin/ directory of your website and will correctly copy each source file to an output file with the extension src: # BEGIN CODE class SourceHandler < FileHandlers::DefaultHandler infos( :name => 'File/SourceHandler', :author => Webgen::AUTHOR, :summary => "Copies the source files to the output dir" ) register_extension 'page' def create_node( path, parent, meta_info ) name = File.basename(path, '.*') + ".src" node = parent.find {|c| c =~ name } if node.nil? node = Node.new( parent, name ) node['title'] = name node.meta_info.update( meta_info ) node.node_info[:src] = path node.node_info[:processor] = self else log(:warn) { "Can't create node <#{node.full_path}> as it already exists (node handled by #{node.node_info[:processor].class.plugin_name})!" } end node end # Copy the file to the destination directory if it has been modified. def write_node( node ) if @plugin_manager['Core/FileHandler'].file_modified?( node.node_info[:src], node.full_path ) FileUtils.cp( node.node_info[:src], node.full_path ) end end end #END CODE Then you can use the following snippet in your default.template to include a link to the source file: Source The important thing is that you use an other extension instead of 'page'! > Any tipps how to accomplish those two things? Or would it be possible > to include something like that in webgen 5.X? I have put the customizable langbar texts onto my todo list for webgen 0.5.x. -- Thomas From mk at fsfe.org Mon Oct 6 11:29:13 2008 From: mk at fsfe.org (Matthias Kirschner) Date: Mon, 6 Oct 2008 17:29:13 +0200 Subject: [webgen-users] Rename language code + link to source In-Reply-To: <20081005085355.724bfede@77.119.22.135.wireless.dyn.drei.com> References: <20081004140310.GA5244@mbwg.de> <20081005085355.724bfede@77.119.22.135.wireless.dyn.drei.com> Message-ID: <20081006152913.GF12827@mbwg.de> * Thomas Leitner [2008-10-05 08:53:55 +0200]: > This is possible in 0.4.x (very easy with 0.5.x). However, the easy > way of using the File/CopyHandler to just copy the page files won't > work due to the used node resolution code of File/PageHandler. [...] Thank you very much for the solution!!! I will try it. > > Any tipps how to accomplish those two things? Or would it be possible > > to include something like that in webgen 5.X? > > I have put the customizable langbar texts onto my todo list for webgen > 0.5.x. And thank you for putting it on your todo list. Best wishes, Matthias From m.franzl at aon.at Thu Oct 9 14:44:39 2008 From: m.franzl at aon.at (Michael Franzl) Date: Thu, 09 Oct 2008 20:44:39 +0200 Subject: [webgen-users] Webgen Bug, Maruku Bug, Questions, Suggestions In-Reply-To: References: <48E3F28A.9040204@aon.at> Message-ID: <48EE5117.803@aon.at> >> I posted this on Maruku Rubyforge one month ago and also sent an email to >> Andrea, but he hasn't responded since then. Is Maruku still developed >> actively? > > When I have the time :-( Ok, thanks. I just thought that when it is in the documentation, it should do it. From m.franzl at aon.at Thu Oct 9 15:54:25 2008 From: m.franzl at aon.at (Michael Franzl) Date: Thu, 09 Oct 2008 21:54:25 +0200 Subject: [webgen-users] Webgen Bug, Maruku Bug, Questions, Suggestions In-Reply-To: <20081002113039.25bfed3d@77.118.151.107.wireless.dyn.drei.com> References: <48E3F28A.9040204@aon.at> <20081002113039.25bfed3d@77.118.151.107.wireless.dyn.drei.com> Message-ID: <48EE6171.9020309@aon.at> > As a work around you can do the following: > > ## Animals {: #animals1} > ### Animals {: #animals2} Thanks for this! > entries: [rel*.html] > So, entries has to be an array of LCNs patterns. * Ok, now I understand that `pattern` means the wildcard in the example above. And an array of those patterns would be for example: entries: [a*.html, dir1/*.html] which works. * But I notice that it is not possible to include single files. Would it be possible to do that: entries: [a.html] or entries: [dir1/b.html, dir1/sub/c.html] * After trial and error I found out that entries get sorted after the key `modified_at:` AND the time format has to be ISO-8601, else it is ignored. Maybe you could document this for other users. * I found out that it makes no difference in the rendered atom/rss file if the key `created_at:` is declared in the source .feed file or not. The time is nowhere to be found. * After declaring the `icon:` key like this icon: /images/icon.png or trial-and-error variants of this, webgen stops with the following error: An error has occurred: Error while processing : undefined method `path' for nil:NilClass > It is currently not possible to use any other block since the name is > hard coded. However, if you need this I could provide support for an > additional option for specifying the block name. My page files consist of the `content` block, which contains a large amount of content (say, 20-30 real pages of text) and a `abstract` block, which contains only 1-2 paragraphs as summary. It would be nice if this `abstract` block could be used in a block of the feed. This paragraph would be displayed below the link, if users click on the RSS icon. To include the large body of text would IMO be of no use for feed purposes (and with 10 articles, the feed would get very large, about 500kB) >> * If a link is set to the current page via Maruku syntax, >> then a link is displayed even if >> website.link_to_current_page is set to true in config.yaml. >> Ideally, this shouldn't be. > > Could you please show me an example of this syntax? You are using the > relocatable tag, aren't you? Correct. If you use > > This is a [link]({relocatable: ../some_file.html}) to a page. > > then the relocatable tag only returns the correct relative path and > Maruku generates the link. So there is no way for webgen to interfere > with the link creation. However, a link tag will possibly appear in one > of the next version which could solve this problem. This link tag would be useful, since links to the current page are seldom desirable IMO. I would need this, because I'm automatically (via sed) setting cross-reference links for terms that need explanation to a glossary. And the glossary needs to be excluded from the links to the glossary ;) Thanks for your help. Michael From t_leitner at gmx.at Fri Oct 10 06:07:22 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 10 Oct 2008 12:07:22 +0200 Subject: [webgen-users] Webgen Bug, Maruku Bug, Questions, Suggestions In-Reply-To: <48EE6171.9020309@aon.at> References: <48E3F28A.9040204@aon.at> <20081002113039.25bfed3d@77.118.151.107.wireless.dyn.drei.com> <48EE6171.9020309@aon.at> Message-ID: <20081010120722.1e5af83a@77.119.22.135.wireless.dyn.drei.com> > * But I notice that it is not possible to include single > files. Would it be possible to do that: > > entries: [a.html] > or > entries: [dir1/b.html, dir1/sub/c.html] It is possible but remember that it is a LCN pattern and not a CN pattern - so you need to do something like entries: [a.en.html] or entries: [dir1/b.en.html, dir1/sub/c.en.html] (substitute en with the approriate language code). > * After trial and error I found out that entries get sorted > after the key `modified_at:` AND the time format has to be > ISO-8601, else it is ignored. Maybe you could document this > for other users. I have updated the feed documentation, thanks for the hint! The `modified_at` meta information is derived from the file modification time and can be overwritten in a page file or using metainfo files. However, both the meta information block of a page file and the metainfo files use YAML and therefore you need to use the time format specified by YAML. If the specified value is not correct, the current time is used as modified_at value. I have also updated the meta information reference page with links to the YAML timestamp specification. > * I found out that it makes no difference in the rendered > atom/rss file if the key `created_at:` is declared in the > source .feed file or not. The time is nowhere to be found. The value for the key also needs to be a valid YAML timestamp including the time part and is used for the publication date of the feed. Looking through the sources of the feed_tools library which is used for generating the feeds I found that the publication date is only used for RSS 2.0 feeds. > * After declaring the `icon:` key like this > > icon: /images/icon.png > > or trial-and-error variants of this, webgen stops with the > following error: > > An error has occurred: Error while processing > : undefined method `path' for nil:NilClass You would need to specify the absolute localized canonical name of the icon you wish to use. Your example looks right to me and in tests this works. However, I have just noticed the feed_tools version doesn't support setting the feed icon so I will remove support for this option. > > It is currently not possible to use any other block since the name > > is hard coded. However, if you need this I could provide support > > for an additional option for specifying the block name. > > My page files consist of the `content` block, which contains > a large amount of content (say, 20-30 real pages of text) > and a `abstract` block, which contains only 1-2 paragraphs > as summary. It would be nice if this `abstract` block could > be used in a block of the feed. This paragraph > would be displayed below the link, if users click on the RSS > icon. > > To include the large body of text would IMO be of no use for > feed purposes (and with 10 articles, the feed would get very > large, about 500kB) Okay, I have added an option `content_block_name` for specifying the block that should be used. Be aware that all page files that can appear in a feed need to have such a block! > If you use > > > > This is a [link]({relocatable: ../some_file.html}) to a page. > > > > then the relocatable tag only returns the correct relative path and > > Maruku generates the link. So there is no way for webgen to > > interfere with the link creation. However, a link tag will possibly > > appear in one of the next version which could solve this problem. > > This link tag would be useful, since links to the current > page are seldom desirable IMO. I would need this, because > I'm automatically (via sed) setting cross-reference links > for terms that need explanation to a glossary. And the > glossary needs to be excluded from the links to the glossary ;) I have the link tag on my todo list. It will output basically the same links as the menu or breadcrumb_trail tags. So even if not linking to the current page, the link title is still displayed. -- Thomas From franzl at corporatematters.at Fri Oct 10 10:09:53 2008 From: franzl at corporatematters.at (Michael Franzl) Date: Fri, 10 Oct 2008 16:09:53 +0200 Subject: [webgen-users] upgrading from webgen-0.5.3 Message-ID: <48EF6231.2030004@corporatematters.at> My working webgen-0.5.3 project stopped with the following error in webgen-0.5.4., 0.5.5 and gettalong-webgen. An error has occurred: Error while processing : No such content processor available: false There's nothing 'special' in this file: --- title: Einleitung in_menu: true sort_info: 100 belongs_to: exp identifier: exp-teil1 --- name:content ##Teil 1 ###Einleitung Text... Note: belongs_to: is a custom meta key. Unfortunately, I'm without a clue here... Michael From t_leitner at gmx.at Fri Oct 10 10:07:40 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 10 Oct 2008 16:07:40 +0200 Subject: [webgen-users] upgrading from webgen-0.5.3 In-Reply-To: <48EF6231.2030004@corporatematters.at> References: <48EF6231.2030004@corporatematters.at> Message-ID: <20081010160740.24c509cb@77.119.22.135.wireless.dyn.drei.com> Am Fri, 10 Oct 2008 16:09:53 +0200 schrieb Michael Franzl : > My working webgen-0.5.3 project stopped with the following error in > webgen-0.5.4., 0.5.5 and gettalong-webgen. > > An error has occurred: Error while processing > : No such content processor available: false > > There's nothing 'special' in this file: > > --- > title: Einleitung > in_menu: true > sort_info: 100 > belongs_to: exp > identifier: exp-teil1 > > --- name:content > ##Teil 1 > ###Einleitung > Text... > > Note: belongs_to: is a custom meta key. > > Unfortunately, I'm without a clue here... Did you delete the generated cache file before running the new webgen version? That may help. What do you have in your config.yaml file? Did you change the default processing pipeline for page files? If the above does not help, could you send me your webgen website for further investigation? -- Thomas From m.franzl at aon.at Fri Oct 10 14:37:42 2008 From: m.franzl at aon.at (Michael Franzl) Date: Fri, 10 Oct 2008 20:37:42 +0200 Subject: [webgen-users] upgrading from webgen-0.5.3 In-Reply-To: <20081010160740.24c509cb@77.119.22.135.wireless.dyn.drei.com> References: <48EF6231.2030004@corporatematters.at> <20081010160740.24c509cb@77.119.22.135.wireless.dyn.drei.com> Message-ID: <48EFA0F6.80504@aon.at> > Did you delete the generated cache file before running the new webgen > version? That may help. Yes, didn't help. > What do you have in your config.yaml file? Commented out everything in config.yaml, still the same problem. > Did you change the default processing pipeline for page files? Yes. Ok, now I stripped my project to the bone and isolated the problem. webgen 0.5.4 and upwards doesn't like this statement in page files anymore: --- pipeline: It is an empty pipeline. Now I understand why it stops with the error No such content processor available: false Anyhow, I've learned to circumvent this problem by writing --- pipeline:blocks since I just want webgen to not resolve {relocatable: } tags, i.e., to conserve the syntax until it is passed to default.template. Now even gettalong-webgen runs. Thanks, Michael From m.franzl at aon.at Fri Oct 10 15:23:12 2008 From: m.franzl at aon.at (Michael Franzl) Date: Fri, 10 Oct 2008 21:23:12 +0200 Subject: [webgen-users] Webgen Bug, Maruku Bug, Questions, Suggestions In-Reply-To: <20081010120722.1e5af83a@77.119.22.135.wireless.dyn.drei.com> References: <48E3F28A.9040204@aon.at> <20081002113039.25bfed3d@77.118.151.107.wireless.dyn.drei.com> <48EE6171.9020309@aon.at> <20081010120722.1e5af83a@77.119.22.135.wireless.dyn.drei.com> Message-ID: <48EFABA0.8080105@aon.at> > entries: [dir1/b.en.html, dir1/sub/c.en.html] Works! I'm not using languages, so I thought it wouldn't be necessary. > The value for the key also needs to be a valid YAML timestamp including > the time part and is used for the publication date of the feed. Looking > through the sources of the feed_tools library which is used for > generating the feeds I found that the publication date is only used for > RSS 2.0 feeds. Would it be possible to use RSS 2.0 feeds? Not important for me, just asking. >> My page files consist of the `content` block, which contains >> a large amount of content (say, 20-30 real pages of text) >> and a `abstract` block, which contains only 1-2 paragraphs >> as summary. It would be nice if this `abstract` block could >> be used in a block of the feed. This paragraph >> would be displayed below the link, if users click on the RSS >> icon. > Okay, I have added an option `content_block_name` for specifying the > block that should be used. Be aware that all page files that can > appear in a feed need to have such a block! Do you mean an config.yaml option? Can you help me out where to put it and how to write it? Does webgen put the content of the specified block in the RSS/ATOM or tag? Michael From t_leitner at gmx.at Fri Oct 10 17:36:34 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 10 Oct 2008 23:36:34 +0200 Subject: [webgen-users] upgrading from webgen-0.5.3 In-Reply-To: <48EFA0F6.80504@aon.at> References: <48EF6231.2030004@corporatematters.at> <20081010160740.24c509cb@77.119.22.135.wireless.dyn.drei.com> <48EFA0F6.80504@aon.at> Message-ID: <20081010233634.4660b278@77.119.22.135.wireless.dyn.drei.com> > > Did you change the default processing pipeline for page files? > > Yes. > > Ok, now I stripped my project to the bone and isolated the > problem. webgen 0.5.4 and upwards doesn't like this > statement in page files anymore: > > --- pipeline: > > It is an empty pipeline. Now I understand why it stops with > the error > > No such content processor available: false > > Anyhow, I've learned to circumvent this problem by writing > > --- pipeline:blocks > > since I just want webgen to not resolve {relocatable: } > tags, i.e., to conserve the syntax until it is passed to > default.template. > > Now even gettalong-webgen runs. Thanks, This bug has been introduced when I changed the block option parsing code to use YAML to convert the values into proper Ruby classes. I have fixed this in my local repo and will push a new beta gem to github soon. -- Thomas From t_leitner at gmx.at Fri Oct 10 17:45:12 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 10 Oct 2008 23:45:12 +0200 Subject: [webgen-users] Webgen Bug, Maruku Bug, Questions, Suggestions In-Reply-To: <48EFABA0.8080105@aon.at> References: <48E3F28A.9040204@aon.at> <20081002113039.25bfed3d@77.118.151.107.wireless.dyn.drei.com> <48EE6171.9020309@aon.at> <20081010120722.1e5af83a@77.119.22.135.wireless.dyn.drei.com> <48EFABA0.8080105@aon.at> Message-ID: <20081010234512.098149e0@77.119.22.135.wireless.dyn.drei.com> > > The value for the key also needs to be a valid YAML timestamp > > including the time part and is used for the publication date of the > > feed. Looking through the sources of the feed_tools library which > > is used for generating the feeds I found that the publication date > > is only used for RSS 2.0 feeds. > > Would it be possible to use RSS 2.0 feeds? Not important for > me, just asking. I can see if I can do that easily and if so, it will be in the next release. > >> My page files consist of the `content` block, which contains > >> a large amount of content (say, 20-30 real pages of text) > >> and a `abstract` block, which contains only 1-2 paragraphs > >> as summary. It would be nice if this `abstract` block could > >> be used in a block of the feed. This paragraph > >> would be displayed below the link, if users click on the RSS > >> icon. > > > Okay, I have added an option `content_block_name` for specifying the > > block that should be used. Be aware that all page files that can > > appear in a feed need to have such a block! > > Do you mean an config.yaml option? Can you help me out where > to put it and how to write it? It will be an option that needs to be put into the .feed file, like entries. The name is as I have written it: content_block_name. However, the changes regarding the feed handler are currently only in my local repo, will be pushed to the github/rubyforge one soon (probably on Sundary). > Does webgen put the content of the specified block in the > RSS/ATOM or tag? It puts the content in the content tag. -- Thomas From m.franzl at aon.at Fri Oct 10 21:22:39 2008 From: m.franzl at aon.at (Michael Franzl) Date: Sat, 11 Oct 2008 03:22:39 +0200 Subject: [webgen-users] Webgen Bug, Maruku Bug, Questions, Suggestions In-Reply-To: <20081010234512.098149e0@77.119.22.135.wireless.dyn.drei.com> References: <48E3F28A.9040204@aon.at> <20081002113039.25bfed3d@77.118.151.107.wireless.dyn.drei.com> <48EE6171.9020309@aon.at> <20081010120722.1e5af83a@77.119.22.135.wireless.dyn.drei.com> <48EFABA0.8080105@aon.at> <20081010234512.098149e0@77.119.22.135.wireless.dyn.drei.com> Message-ID: <48EFFFDF.1070708@aon.at> > It will be an option that needs to be put into the .feed file, like > entries. The name is as I have written it: content_block_name. However, > the changes regarding the feed handler are currently only in my local > repo, will be pushed to the github/rubyforge one soon (probably on > Sundary). Ok, thanks! Another suggestion regarding feeds: The feed entries are sorted by the metainfo `modified_at` from older dates to recent dates. But the most feeds I saw sort them in the reverse direction, recent entries first. If users bookmark the feed in their browser, for example, it would be intuitive that the recent articles are located at the top. FWIW, Michael From t_leitner at gmx.at Sun Oct 12 14:02:08 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Sun, 12 Oct 2008 20:02:08 +0200 Subject: [webgen-users] New webgen beta version Message-ID: <20081012200208.6c8bbaa7@77.116.207.43.wireless.dyn.drei.com> Hi everybody, just wanted to let you know that I have updated the Rubfyorge and Github repositories with the latest changes of my personal repo. A new beta gem on Github is also available and the devel documentation section on the homepage has been updated accordingly. The following changes have been made since the 0.5.5 release: * Huge update to internal update/write cycle for node to allow the correct handling of nodes created in the write phase. This also means that there may be more than one update/write cycles in one run. The #create_node method for a source handler now needs to return the same nodes everytime it is invoked with the same parameters. * Added new tag tikz for testing/showing off what is possible with the new internals. This tag uses the LaTeX library PGF/TikZ to generate nice graphics (see http://webgen.rubyforge.org/documentation/tag/tikz.html). * Updated the fragment node handling to take advantage of the new internals. This now means that the content block is not rendered anymore when a page node is created (this was necessary to create the fragment nodes) which sometimes lead to errors. * Updates to SourceHandler::Feed: - new option for setting the name of the block that is used in generating the entry content - removed support for icon specification (was not implemented by backend library) - feed entries are now sorted from newest to oldest - rss version can be specified via a new option * Added new configuration option tag.langbar.lang_names for specifying the display name of a language code. * Some other minor changes in Webgen::Node, Webgen::Language and others * Fixed various small bugs and parts of the documentation There are some other minor things that I plan on implementing till the 0.5.6 release but I think that the 0.5.6 release will be done at the end of next week. Since there was a huge update to the internal node handling, there may still be some bugs which I haven't found - so if you try this beta version please report any found bugs/regressions! Concerning blogging support: this will now be the next big thing implemented in webgen (I had to do the huge update to the internal node handling before that). If you have any other suggestions/feature requests just state them! Minors ones like the updates to the feed handler mentioned above should always be doable :) -- Thomas From franzl at corporatematters.at Mon Oct 13 07:20:50 2008 From: franzl at corporatematters.at (Michael Franzl) Date: Mon, 13 Oct 2008 13:20:50 +0200 Subject: [webgen-users] Time format in webgen Message-ID: <48F32F12.1050505@corporatematters.at> When you declare a time in XML Format as metainfo key: custom_time: 2008-10-13T10:10:45+01:00 or modified_at: 2008-10-13T10:10:45+01:00 and use it somewhere else like this <%= "#{node['custom_time']}" %> <%= "#{node['modified_at']}" %> then the output of both statements is Mon Oct 13 11:10:45 +0200 2008 Is it possible to change the time format to something else? At least to keep it as-is, i.e. "2008-10-13T10:10:45+01:00"? Michael From t_leitner at gmx.at Mon Oct 13 08:54:30 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Mon, 13 Oct 2008 14:54:30 +0200 Subject: [webgen-users] Time format in webgen In-Reply-To: <48F32F12.1050505@corporatematters.at> References: <48F32F12.1050505@corporatematters.at> Message-ID: <20081013145430.404eaba0@77.116.207.43.wireless.dyn.drei.com> Am Mon, 13 Oct 2008 13:20:50 +0200 schrieb Michael Franzl : > When you declare a time in XML Format as metainfo key: > > custom_time: 2008-10-13T10:10:45+01:00 > > or > > modified_at: 2008-10-13T10:10:45+01:00 > > and use it somewhere else like this > > <%= "#{node['custom_time']}" %> > <%= "#{node['modified_at']}" %> > > then the output of both statements is > > Mon Oct 13 11:10:45 +0200 2008 > > Is it possible to change the time format to something else? At least > to keep it as-is, i.e. "2008-10-13T10:10:45+01:00"? Just use Ruby's Time#strftime method to format the time, for example: <%= node['custom_time'].strftime('%Y%m%d') Note that this only works if the time in the meta information is a formatted as a valid YAML time (see http://webgen.rubyforge.org/documentation/reference_metainfo.html#modified_at), Otherwise you would just get a string and not a Time object! Also note that if you leave out the hour and time, you just get a Date object! -- Thomas From nicolas.delsaux at gmail.com Mon Oct 13 16:31:02 2008 From: nicolas.delsaux at gmail.com (Nicolas Delsaux) Date: Mon, 13 Oct 2008 22:31:02 +0200 Subject: [webgen-users] strange error In-Reply-To: <20081004233852.217003d8@77.119.22.135.wireless.dyn.drei.com> References: <418361960810040725q3396e32u3224d09dff3bcce@mail.gmail.com> <20081004233852.217003d8@77.119.22.135.wireless.dyn.drei.com> Message-ID: <418361960810131331h2cbac8d0y2283294377e66c4@mail.gmail.com> On Sat, Oct 4, 2008 at 11:38 PM, Thomas Leitner wrote: > > Recall that the meta information part needs to be a valid YAML hash. Stupid of me :-O > However, when YAML parses [BienBienBien] it assumes that the value for > the title is an array and not a string. So you need to escape your > > After this change, the meta information block loaded fine in my tests. Yup, it now works fine. Thanks. And all seems fine ... Except there are failures with generation of pages from some feeds (like linuxfr or snippets.dzone, which create numerical only entries that webgen parses as only one page). But I will correct that soon. -- 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. From t_leitner at gmx.at Wed Oct 15 02:30:25 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Wed, 15 Oct 2008 08:30:25 +0200 Subject: [webgen-users] Blog support: Tags Message-ID: <20081015083025.7ec5f355@77.116.207.43.wireless.dyn.drei.com> Hi everybody, I'm currently investigating how to implement tags support so that it fits the need of most users. What I'm thinking about so far: * Tags are specified via the `tags` meta information key, like this: --- title: Some blog article tags: [webgen, ruby, css] --- Body of the article * The SourceHandler::Tag uses a file with the extension .tag and has a content similar to that of the SourceHandler::Feed. For example, consider the file /blog/blog.tag name: myblog # overwrite the unique identifier # (was blog before, from the # filename) entries: article/**/*.html # pattern for the pages to use create_feeds: true # create a feed for each tag entries_per_page: 20 # number of entries per tag page # creates more than one page if # necessary directory: tag # the directory in which the tag # pages should be created template: tag.template # the template that should be used # to render the tag pages From this file the source handler creates the following files: /blog/tag/tagname.page /blog/tag/tagname.feed /blog/tag/othertag.page /blog/tag/othertag2.page /blog/tag/othertag.feed The created tag pages do not contain any content, only meta information and the information to which .tag path they belong and which tag they represent. The rendering of a tag page is done via a template, in the case above via /blog/tag.template. A default tag template will be shipped with webgen. The tag pages can be localized to a specific language by providing the language in the file name, for example blog.de.tag. However, you have to ensure that you use the correct pattern for the `entries` option! * There will be some webgen tags to handle the displaying of tags in pages. The only one I can currently think of is a tag cloud. The above is my current plan. However, before I'm going to implement this I kinda like to have some feedback on the following questsion: * The above scheme handles flat tag spaces which is the most common use case, I think. I have searched a bit for nested tag implementation but did not find anything useful. Are nested tags useful? How should they be implemented? Are there any example implementations in other programs you can refer me to? * The `entries` key is still to unflexible. As I have said before I will implement a more flexible solution which will allow the following: - filter nodes by LCN patterns - filter nodes by properties - sort by a node property - limit the returned nodes (all, range, first n) and probably some others. Are there any other filters/options you want to have when selecting nodes for a feed, a tag file, a blog file, ...? * Are there any other options for the tag source handler you need except those listed above (name, entries, create_feeds, ...)? * Are there any other webgen tags you can think of that would be useful for the general public? I have planned to start implementing the tag source handler after the 0.5.6 release this weekend. So there is some time to answer my questions :) Thanks, Thomas From phil at pricom.com.au Thu Oct 16 21:28:38 2008 From: phil at pricom.com.au (Phil) Date: Fri, 17 Oct 2008 12:28:38 +1100 Subject: [webgen-users] webgen-0.5.4 menu question Message-ID: <48F7EA46.90601@pricom.com.au> People, I create a new project and add a "t.page": --- title: testpage routed_title: testing --- ## Testing testing but this is added to the menu - why is this? How can I prevent it? Thanks, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: phil at pricom.com.au From t_leitner at gmx.at Fri Oct 17 01:40:28 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 17 Oct 2008 07:40:28 +0200 Subject: [webgen-users] webgen-0.5.4 menu question In-Reply-To: <48F7EA46.90601@pricom.com.au> References: <48F7EA46.90601@pricom.com.au> Message-ID: <20081017074028.0a143c8e@77.116.207.43.wireless.dyn.drei.com> Hi Phil, Am Fri, 17 Oct 2008 12:28:38 +1100 schrieb Phil : > People, > > I create a new project and add a "t.page": > > --- > title: testpage > routed_title: testing > --- > ## Testing > > testing > > but this is added to the menu - why is this? How can I prevent it? This is because of a bad menu tag in website template. I have put this on my TODO list to fix it for the next release. The t.page is not in the menu. However, it has one fragment node (for the ## Testing header) and fragment nodes are in the menu per default. Since the menu tag used in the default.template looks like this: {menu: {max_levels: 1}} the t.page appears in it because the menu uses all nodes per default, meaning that all nodes appear in the menu which have in_menu set to true or which have sub-nodes that have in_menu set to true. The latter is true for t.page. Just change the menu tag to the following {menu: {max_levels: 1, used_nodes: files}} and the t.page won't appear in the menu anymore. -- Thomas From phil at pricom.com.au Fri Oct 17 02:16:14 2008 From: phil at pricom.com.au (Phil) Date: Fri, 17 Oct 2008 17:16:14 +1100 Subject: [webgen-users] webgen-0.5.4 menu question In-Reply-To: <20081017074028.0a143c8e@77.116.207.43.wireless.dyn.drei.com> References: <48F7EA46.90601@pricom.com.au> <20081017074028.0a143c8e@77.116.207.43.wireless.dyn.drei.com> Message-ID: <48F82DAE.1000809@pricom.com.au> Thomas, Thomas Leitner wrote: > Hi Phil, > > Am Fri, 17 Oct 2008 12:28:38 +1100 > schrieb Phil : > >> People, >> >> I create a new project and add a "t.page": >> >> --- >> title: testpage >> routed_title: testing >> --- >> ## Testing >> >> testing >> >> but this is added to the menu - why is this? How can I prevent it? > > This is because of a bad menu tag in website template. I have put this > on my TODO list to fix it for the next release. > > The t.page is not in the menu. However, it has one fragment node (for > the ## Testing header) and fragment nodes are in the menu per default. > Since the menu tag used in the default.template looks like this: > > {menu: {max_levels: 1}} Mine is: {menu: } > the t.page appears in it because the menu uses all nodes per default, > meaning that all nodes appear in the menu which have in_menu set to > true or which have sub-nodes that have in_menu set to true. The > latter is true for t.page. Just change the menu tag to the following > > {menu: {max_levels: 1, used_nodes: files}} > > and the t.page won't appear in the menu anymore. Thanks! Regards, Phil. -- Philip Rhoades GPO Box 3411 Sydney NSW 2001 Australia E-mail: phil at pricom.com.au From thewoolleyman at gmail.com Fri Oct 17 07:46:50 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 17 Oct 2008 04:46:50 -0700 Subject: [webgen-users] horizontal submenus no longer separate unordered list? In-Reply-To: <20080923162839.00759af6@noeato.local> References: <20080923162839.00759af6@noeato.local> Message-ID: On Tue, Sep 23, 2008 at 7:28 AM, Thomas Leitner wrote: > The menu tag currently only generates nested lists. I will add an > option for generating non-nested lists which would do the following: > > tag.menu.nested = false: > > Note: for such a menu to work correctly, the > tag.menu.show_current_subtree_only option has to be set to true. > Finally tried this out - it seems to work fine. Thanks! -- Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Fri Oct 17 07:51:34 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 17 Oct 2008 04:51:34 -0700 Subject: [webgen-users] horizontal submenus no longer separate unordered list? In-Reply-To: <20080923162839.00759af6@noeato.local> References: <20080923162839.00759af6@noeato.local> Message-ID: On Tue, Sep 23, 2008 at 7:28 AM, Thomas Leitner wrote: > The menu tag currently only generates nested lists. I will add an > option for generating non-nested lists which would do the following: > > tag.menu.nested = false: > > Note: for such a menu to work correctly, the > tag.menu.show_current_subtree_only option has to be set to true. > Finally tried this out - it seems to work fine. Thanks! -- Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: From thewoolleyman at gmail.com Fri Oct 17 08:08:53 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 17 Oct 2008 05:08:53 -0700 Subject: [webgen-users] Config file docs confusing Message-ID: Hi, Just a suggestion, but the doc sections about the config file are a bit unclear. For example, I just added these config options to my config.yaml, which seems a bit un-yamlish: tag.menu.show_current_subtree_only: true tag.menu.nested: false I also already had these entries: default_meta_info: Page: blocks: default: {pipeline: tags,maruku,blocks} Template: blocks: default: {pipeline: tags,maruku,blocks} So, it is confusing to know for any given config entry what I should put. When I added my entries, I could have guessed wrong and tried this, which looks like my existing config.yaml entries: tag: menu: show_current_subtree: true ...or this, which looks similar to some of the examples on the config options reference page: {tag: {menu: {show_current_subtree: true}}} So, I guess I'm saying you should have a general section in the docs about what exactly config.yaml is for, and what formats are valid to be used in it, and how these relate to all the possible config options. Thanks, -- Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: From t_leitner at gmx.at Fri Oct 17 09:24:04 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 17 Oct 2008 15:24:04 +0200 Subject: [webgen-users] Config file docs confusing In-Reply-To: References: Message-ID: <20081017152404.79ec23a3@77.116.207.43.wireless.dyn.drei.com> Am Fri, 17 Oct 2008 05:08:53 -0700 schrieb "Chad Woolley" : > Hi, > > Just a suggestion, but the doc sections about the config file are a > bit unclear. > > For example, I just added these config options to my config.yaml, > which seems a bit un-yamlish: > > tag.menu.show_current_subtree_only: true > tag.menu.nested: false > > I also already had these entries: > > default_meta_info: > Page: > blocks: > default: {pipeline: tags,maruku,blocks} > Template: > blocks: > default: {pipeline: tags,maruku,blocks} > > So, it is confusing to know for any given config entry what I should > put. When I added my entries, I could have guessed wrong and tried > this, which looks like my existing config.yaml entries: > > tag: > menu: > show_current_subtree: true > > ...or this, which looks similar to some of the examples on the config > options reference page: > > {tag: {menu: {show_current_subtree: true}}} > > So, I guess I'm saying you should have a general section in the docs > about what exactly config.yaml is for, and what formats are valid to > be used in it, and how these relate to all the possible config > options. Thanks for the suggestions! I will make the examples clearer. -- Thomas From smpatil at gmail.com Sat Oct 18 18:33:54 2008 From: smpatil at gmail.com (Siddharth) Date: Sat, 18 Oct 2008 15:33:54 -0700 (PDT) Subject: [webgen-users] Web Form Message-ID: <7229e540-8ce8-4cf8-aeac-8be44bdb7e34@q9g2000hsb.googlegroups.com> Hi I'm new to webgen and I'm trying to include a web form in my webgen generated site. If I include raw html, the generated source comes up as blank. The only meta information included on the page is the title. Do I need to do something special? Thanks, Sid From Igor.Petrushenko at gmail.com Sun Oct 19 06:47:17 2008 From: Igor.Petrushenko at gmail.com (Igor) Date: Sun, 19 Oct 2008 03:47:17 -0700 (PDT) Subject: [webgen-users] Web Form In-Reply-To: <7229e540-8ce8-4cf8-aeac-8be44bdb7e34@q9g2000hsb.googlegroups.com> References: <7229e540-8ce8-4cf8-aeac-8be44bdb7e34@q9g2000hsb.googlegroups.com> Message-ID: Hi, Please, could you paste your code? It seems that you may escape it with form_code or something like this. I prefer to embed webgen generated html with forms, generated by free online database MyTaskHelper.com Here you can design your Database, and than share it, using iframe. For example if you need to extend your webgen powered site with Mailing List: - Creating Database - Mailing List - Creating Entity "Email" - Creating Emails property - email, name, ... - Making your database public - Getting widget code - Copy/paste widget code to webgen source page, it will be like: - run webgen - enjoy Now you have static site with dynamic form! In this way you can create more forms, and thanks to webgen easily generate your site in a moment! Thanks, Igor From t_leitner at gmx.at Sun Oct 19 14:36:25 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Sun, 19 Oct 2008 20:36:25 +0200 Subject: [webgen-users] Web Form In-Reply-To: <7229e540-8ce8-4cf8-aeac-8be44bdb7e34@q9g2000hsb.googlegroups.com> References: <7229e540-8ce8-4cf8-aeac-8be44bdb7e34@q9g2000hsb.googlegroups.com> Message-ID: <20081019203625.4b70dab5@77.116.207.43.wireless.dyn.drei.com> Am Sat, 18 Oct 2008 15:33:54 -0700 (PDT) schrieb Siddharth : > Hi > I'm new to webgen and I'm trying to include a web form in my webgen > generated site. If I include raw html, the generated source comes up > as blank. The only meta information included on the page is the > title. > > Do I need to do something special? webgen uses a Markup language like Textile or Markdown for writing page files by default. webgen 0.4.x uses Textile as default, 0.5.x Markdown. Both markup languages normally allow the inclusion of HTML tags but some HTML tags may be filtered out. So, as Igor already suggested, could you post your page file? This would help greatly! And what version of webgen are you using (run `webgen version`)? -- Thomas From nicolas.delsaux at gmail.com Mon Oct 20 15:22:42 2008 From: nicolas.delsaux at gmail.com (Nicolas Delsaux) Date: Mon, 20 Oct 2008 21:22:42 +0200 Subject: [webgen-users] issue with feed generation Message-ID: <418361960810201222u6435dab5t1a9abea822638b89@mail.gmail.com> Hi, like a previous user (http://groups.google.com/group/webgen-users/browse_thread/thread/7388729b34c5aaad/fc0167d192818410?lnk=gst&q=feed#fc0167d192818410), I encounter issue with feed generation. I've copied, more or less, Thomas config and updated to be like this --- title: Le site - flux complet description: Toutes les nouvelles site_url: http://nicolas.delsaux.free.fr/lifestream author: Nicolas Delsaux site_url: http://nicolas.delsaux.free.fr/lifestream number_of_entries: 10 rss: true entries: [*.html] But webgen always replies me an error message : An error has occurred: Error reading source path : Found start line for meta information block but no valid meta information block Can one tell me why this error appears ? Thanks. -- Nicolas Delsaux From Igor.Petrushenko at gmail.com Tue Oct 21 08:51:43 2008 From: Igor.Petrushenko at gmail.com (Igor) Date: Tue, 21 Oct 2008 05:51:43 -0700 (PDT) Subject: [webgen-users] Adding dynamic form with database backend to webgen powered sites. Message-ID: <685f910d-db77-4563-98ac-97cbf8038a1e@i76g2000hsf.googlegroups.com> Hi, I'd like to discuss the way of building sites with forms. I already posted in form related topic about free online database http://www.mytaskhelper.com And I'd like to tell you how I use both Webgen/MyTaskHelper. I have several webgen powered sites (tourism/health) related. And when I need to embed such sites with form I'm using mytaskhelper.com You can create Mailing List, get widget code, and paste it to your webgen template. Some examples of form is on the main page. Also I'de like to add some API, which can be used for it from webgen, - but this is offtopic, and we can discuss it in other place(mailing). From t_leitner at gmx.at Tue Oct 21 10:53:47 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Tue, 21 Oct 2008 16:53:47 +0200 Subject: [webgen-users] Adding dynamic form with database backend to webgen powered sites. In-Reply-To: <685f910d-db77-4563-98ac-97cbf8038a1e@i76g2000hsf.googlegroups.com> References: <685f910d-db77-4563-98ac-97cbf8038a1e@i76g2000hsf.googlegroups.com> Message-ID: <20081021165347.13336e14@77.116.207.43.wireless.dyn.drei.com> Am Tue, 21 Oct 2008 05:51:43 -0700 (PDT) schrieb Igor : > I'd like to discuss the way of building sites with forms. > > I already posted in form related topic about free online database > http://www.mytaskhelper.com > > And I'd like to tell you how I use both Webgen/MyTaskHelper. > > > I have several webgen powered sites (tourism/health) related. > And when I need to embed such sites with form I'm using > mytaskhelper.com > > You can create Mailing List, get widget code, and paste it to your > webgen template. > Some examples of form is on the main page. > > > Also I'de like to add some API, which can be used for it from webgen, > - but this is offtopic, > and we can discuss it in other place(mailing). If you need any help with this, just post to the mailing list. -- Thomas From t_leitner at gmx.at Tue Oct 21 10:50:32 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Tue, 21 Oct 2008 16:50:32 +0200 Subject: [webgen-users] issue with feed generation In-Reply-To: <418361960810201222u6435dab5t1a9abea822638b89@mail.gmail.com> References: <418361960810201222u6435dab5t1a9abea822638b89@mail.gmail.com> Message-ID: <20081021165032.68b385c1@77.116.207.43.wireless.dyn.drei.com> Am Mon, 20 Oct 2008 21:22:42 +0200 schrieb "Nicolas Delsaux" : > Hi, like a previous user > (http://groups.google.com/group/webgen-users/browse_thread/thread/7388729b34c5aaad/fc0167d192818410?lnk=gst&q=feed#fc0167d192818410), > I encounter issue with feed generation. > I've copied, more or less, Thomas config and updated to be like this > > --- > title: Le site - flux complet > description: Toutes les nouvelles > site_url: http://nicolas.delsaux.free.fr/lifestream > author: Nicolas Delsaux > site_url: http://nicolas.delsaux.free.fr/lifestream > number_of_entries: 10 > rss: true > entries: [*.html] > > But webgen always replies me an error message : > > An error has occurred: Error reading source path : > Found start line for meta information block but no valid meta > information block > > Can one tell me why this error appears ? I have copied the above all_data.feed to a webgen website and run webgen 0.5.6 which works just fine. If you use a lower webgen version, you might have to add three dashes at the end of the file to delimit the meta information block. Support for omitting those has been introduced on 22.08.2008, so any official webgen version afterwards supports this. -- Thomas From Igor.Petrushenko at gmail.com Wed Oct 22 04:20:16 2008 From: Igor.Petrushenko at gmail.com (Igor) Date: Wed, 22 Oct 2008 01:20:16 -0700 (PDT) Subject: [webgen-users] Adding dynamic form with database backend to webgen powered sites. In-Reply-To: <20081021165347.13336e14@77.116.207.43.wireless.dyn.drei.com> References: <685f910d-db77-4563-98ac-97cbf8038a1e@i76g2000hsf.googlegroups.com> <20081021165347.13336e14@77.116.207.43.wireless.dyn.drei.com> Message-ID: Sounds good, I'm glad to hear that you interested in it. Sure, I'll post my thoughts regarding it here. Thanks! Sincerely, Igor From m.franzl at aon.at Wed Oct 22 16:40:58 2008 From: m.franzl at aon.at (Michael Franzl) Date: Wed, 22 Oct 2008 22:40:58 +0200 Subject: [webgen-users] Just one page file with sidebar block Message-ID: <48FF8FDA.2020906@aon.at> Just one of my page files has a block named 'sidebar'. --- name:sidebar In the main template I write When rendering, webgen complains that other files don't have the block sidebar. Should I use an erb conditional in the template, and if yes, how do I write it? Thanks, Michael From t_leitner at gmx.at Thu Oct 23 09:11:46 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 23 Oct 2008 15:11:46 +0200 Subject: [webgen-users] Just one page file with sidebar block In-Reply-To: <48FF8FDA.2020906@aon.at> References: <48FF8FDA.2020906@aon.at> Message-ID: <20081023151146.2714f679@noeato.mat.univie.ac.at> Am Wed, 22 Oct 2008 22:40:58 +0200 schrieb Michael Franzl : > Just one of my page files has a block named 'sidebar'. > > --- name:sidebar > > In the main template I write > > > > When rendering, webgen complains that other files don't have > the block sidebar. Should I use an erb conditional in the > template, and if yes, how do I write it? Hi Michael, yes, I do this with erb conditionals: <% if content_node.node_info[:page].blocks.has_key?('sidebar') %> <% end %> However, if you have nested templates, this won't work. I have to think about a nice solution for this problem. -- Thomas From franzl at corporatematters.at Thu Oct 23 12:00:17 2008 From: franzl at corporatematters.at (Michael Franzl) Date: Thu, 23 Oct 2008 18:00:17 +0200 Subject: [webgen-users] Just one page file with sidebar block In-Reply-To: <20081023151146.2714f679@noeato.mat.univie.ac.at> References: <48FF8FDA.2020906@aon.at> <20081023151146.2714f679@noeato.mat.univie.ac.at> Message-ID: <49009F91.806@corporatematters.at> > However, if you have nested templates, this won't work. I have to > think about a nice solution for this problem. Yes, have nested templates. I worked around like this in default.template: <% if node['identifier'] == "particluar-page" %> <% end %> But it would be much more beautiful if the sidebar content would be declared in the page it belongs to. Michael From dennis at sutch.com Thu Oct 23 21:55:17 2008 From: dennis at sutch.com (Dennis Sutch) Date: Thu, 23 Oct 2008 21:55:17 -0400 Subject: [webgen-users] Question about Webgen::Path Message-ID: Are instances of Webgen::Path used to represent a source path or a destination path, or both? Dennis Sutch dennis at sutch.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From t_leitner at gmx.at Thu Oct 23 13:58:44 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Thu, 23 Oct 2008 19:58:44 +0200 Subject: [webgen-users] Just one page file with sidebar block In-Reply-To: <49009F91.806@corporatematters.at> References: <48FF8FDA.2020906@aon.at> <20081023151146.2714f679@noeato.mat.univie.ac.at> <49009F91.806@corporatematters.at> Message-ID: <20081023195844.2ba26857@noeato.mat.univie.ac.at> Am Thu, 23 Oct 2008 18:00:17 +0200 schrieb Michael Franzl : > > However, if you have nested templates, this won't work. I have to > > think about a nice solution for this problem. > > Yes, have nested templates. > > I worked around like this in default.template: > > <% if node['identifier'] == "particluar-page" %> > > <% end %> > > But it would be much more beautiful if the sidebar content would be > declared in the page it belongs to. As I have said, I will look at the blocks content processor and see what I can come up with. What I have thought of currently: * new implementation should be backwards compatible * option for failing silently if block is not found * option for searching block through whole node chain, not only in the next node in the chain Any other ideas? Comments? -- Thomas From t_leitner at gmx.at Fri Oct 24 01:31:56 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 24 Oct 2008 07:31:56 +0200 Subject: [webgen-users] Question about Webgen::Path In-Reply-To: References: Message-ID: <20081024073156.683d98b1@noeato.mat.univie.ac.at> Am Thu, 23 Oct 2008 21:55:17 -0400 schrieb "Dennis Sutch" : > Are instances of Webgen::Path used to represent a source path or a > destination path, or both? Webgen::Path is used to present a source path and is used a) for representing a source path b) for constructing the output path c) for getting the content of the source using the Path#io method The flow is more or less this (much simplified): * Webgen::Website#render is called * config['sources'] instances are used to find all Webgen::Source objects that provide source Webgen::Path objects (available via the service :source_paths) * the source handlers use the Webgen::Path objects to create nodes whose #path property represents the output path (this is done via SourceHandler::Base#output_path). * the nodes get written to their destination -- Thomas From gaspa at yattaweb.it Fri Oct 24 18:03:58 2008 From: gaspa at yattaweb.it (Andrea Gasparini) Date: Sat, 25 Oct 2008 00:03:58 +0200 Subject: [webgen-users] webgen gem installation Message-ID: <200810250003.58629.gaspa@yattaweb.it> Hi, I've looked at webgen after some time... I'm now trying to install the new version (0.5.4) through gem. Perhaps it's a really dumb thing, but i've not any clue with gem, and very few of ruby. (ok,I'll study ruby...I promise... :D ) So, I tried with: $ sudo gem install webgen ERROR: Error installing webgen: webgen requires facets (= 2.4.3, runtime) and after with (as stated in the homepage): $ sudo gem install --development webgen Building native extensions. This could take a while... ERROR: Error installing webgen: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9 extconf.rb install --development webgen extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:1:in `

' Gem files will remain installed in /var/lib/gems/1.9.0/gems/rcov-0.8.1.2.0 for inspection. Results logged to /var/lib/gems/1.9.0/gems/rcov-0.8.1.2.0/ext/rcovrt/gem_make.out I'm running an ubuntu hardy (with some intrepid packages), gem version is: $ apt-cache policy rubygems1.9 rubygems1.9: Installato: 1.3.0~RC1really1.2.0-2ubuntu2 Candidato: 1.3.0~RC1really1.2.0-2ubuntu3 Tabella versione: 1.3.0~RC1really1.2.0-2ubuntu3 0 500 http://archive.ubuntu.com intrepid/universe Packages *** 1.3.0~RC1really1.2.0-2ubuntu2 0 100 /var/lib/dpkg/status The same happens with ruby1.8 Thanks, bye. -- -gaspa- ----------------------------------------------- --------- http://launchpad.net/~gaspa --------- ------ HomePage: iogaspa.altervista.org ------- -Il lunedi'dell'arrampicatore: www.lunedi.org - From thewoolleyman at gmail.com Fri Oct 24 18:42:40 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 24 Oct 2008 15:42:40 -0700 Subject: [webgen-users] webgen gem installation In-Reply-To: <200810250003.58629.gaspa@yattaweb.it> References: <200810250003.58629.gaspa@yattaweb.it> Message-ID: On Fri, Oct 24, 2008 at 3:03 PM, Andrea Gasparini wrote: > I'm running an ubuntu hardy (with some intrepid packages), gem version is: > There are bugs with development dependencies in earlier versions of rubygems, not sure if they are in the ubuntu-packaged 1.3.0 rc1 really 1.2.0 whatever the heck that means :) I'd suggest downloading and building rubygems 1.3.0 from the gzip file, and see if that works out better. -------------- next part -------------- An HTML attachment was scrubbed... URL: From t_leitner at gmx.at Sat Oct 25 05:24:25 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Sat, 25 Oct 2008 11:24:25 +0200 Subject: [webgen-users] webgen gem installation In-Reply-To: <200810250003.58629.gaspa@yattaweb.it> References: <200810250003.58629.gaspa@yattaweb.it> Message-ID: <20081025112425.20c582f7@noeato.mat.univie.ac.at> Am Sat, 25 Oct 2008 00:03:58 +0200 schrieb Andrea Gasparini : > Hi, > I've looked at webgen after some time... I'm now trying to install > the new version (0.5.4) through gem. Use the latest gem version 0.5.6. And I recommend installing Rubygems separately and not via the package manager because it will save you much troubles under Ubuntu :) First install Ruby 1.8 - webgen *should* work under Ruby 1.9 but some libraries don't. So its better to stay with 1.8 currently. Since Ubuntu splits the Ruby standard library into many different packages, you will need to install the following packages ruby1.8 ruby1.8-dev libzlib-ruby libruby1.8-extras Then download, extract and install the latest Rubygems version (as root or via sudo) wget http://rubyforge.org/frs/download.php/43985/rubygems-1.3.0.tgz tar xzvf rubygems-1.3.0.tgz cd rubygems-1.3.0 ruby setup.rb install After that you can do (as root or via sudo) gem install webgen which will install all needed dependencies but not the optional ones. If you also need the optional libraries, you may need to install the Ubuntu package 'build-essentials' and then do a gem install --development webgen -- Thomas From thewoolleyman at gmail.com Sat Oct 25 13:09:37 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Sat, 25 Oct 2008 10:09:37 -0700 Subject: [webgen-users] How do I make non-webgen-generated pages show up in menu? Message-ID: This metainfo entry used to work to make my rdoc show up as a menu entry, but now it does not: code/rdoc: url: rdoc/index.html in_menu: true title: Rdoc sort_info: 30 Feel free to point me to the docs, I looked for a bit and could not find it. Thanks, -- Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: From t_leitner at gmx.at Sat Oct 25 18:34:03 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Sun, 26 Oct 2008 00:34:03 +0200 Subject: [webgen-users] How do I make non-webgen-generated pages show up in menu? In-Reply-To: References: Message-ID: <20081026003403.4751de36@noeato.mat.univie.ac.at> Am Sat, 25 Oct 2008 10:09:37 -0700 schrieb "Chad Woolley" : > This metainfo entry used to work to make my rdoc show up as a menu > entry, but now it does not: > > code/rdoc: > url: rdoc/index.html > in_menu: true > title: Rdoc > sort_info: 30 > > Feel free to point me to the docs, I looked for a bit and could not > find it. Creation of virtual nodes has been extracted to its own source handler which handles .virtual files. Have a look at http://webgen.rubyforge.org/documentation/sourcehandler/virtual.html The entry should be in the menu again once you put the above fragment into a .virtual file. -- Thomas From thewoolleyman at gmail.com Sun Oct 26 02:16:26 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Sat, 25 Oct 2008 23:16:26 -0700 Subject: [webgen-users] How do I make non-webgen-generated pages show up in menu? In-Reply-To: <20081026003403.4751de36@noeato.mat.univie.ac.at> References: <20081026003403.4751de36@noeato.mat.univie.ac.at> Message-ID: On Sat, Oct 25, 2008 at 3:34 PM, Thomas Leitner wrote: > Creation of virtual nodes has been extracted to its own source handler > which handles .virtual files. Have a look at > http://webgen.rubyforge.org/documentation/sourcehandler/virtual.html > > The entry should be in the menu again once you put the above fragment > into a .virtual file. > I'm sorry, but I still cannot make it work after reading the above documentation and trying several different ways. Can you explain some more? So, say I want http://myhost.com/api.html to show up in my menu under docs/api. 1. What exactly should be in my metainfo file, if anything? I tried nothing, since the doc page above does not mention metainfo 2. Where should I create a .virtual file, and what should it be named? Should it be src/docs/api.virtual? I tried this 3. What exactly should be the contents of the virtual file? This is what I tried, but I get the error "can't convert String into Hash" \--- !omap - /api/api.html: title: Api url: http://myhost.com/api.html in_menu: true 4. What do I have to do different for a file that actually exists, but is not generated by webgen? Say I generated src/docs/code_coverage.html - how exactly do I make that show up in the menu? Do I still need a .virtual file somewhere? Thanks, -- Chad -------------- next part -------------- An HTML attachment was scrubbed... URL: From t_leitner at gmx.at Sun Oct 26 07:04:44 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Sun, 26 Oct 2008 12:04:44 +0100 Subject: [webgen-users] How do I make non-webgen-generated pages show up in menu? In-Reply-To: References: <20081026003403.4751de36@noeato.mat.univie.ac.at> Message-ID: <20081026120444.49067047@noeato.mat.univie.ac.at> Am Sat, 25 Oct 2008 23:16:26 -0700 schrieb "Chad Woolley" : > On Sat, Oct 25, 2008 at 3:34 PM, Thomas Leitner > wrote: > > > Creation of virtual nodes has been extracted to its own source > > handler which handles .virtual files. Have a look at > > http://webgen.rubyforge.org/documentation/sourcehandler/virtual.html > > > > The entry should be in the menu again once you put the above > > fragment into a .virtual file. > > > > > I'm sorry, but I still cannot make it work after reading the above > documentation and trying several different ways. Can you explain > some more? > > So, say I want http://myhost.com/api.html to show up in my menu under > docs/api. I assume that you have a directory /docs/ and that your URL should appear as sub entry under this directory. > 1. What exactly should be in my metainfo file, if anything? I tried > nothing, since the doc page above does not mention metainfo If you want to add a node for an external URL you just need a virtual file. For your example URL you would create a /virtual file with the following contents: /docs/api: url: http://myhost.com/api.html title: API documentation in_menu: true > 2. Where should I create a .virtual file, and what should it be named? > Should it be src/docs/api.virtual? I tried this You can either create a file called "virtual" in any directory or a file with the extension ".virtual". Creating a src/docs/api.virtual is fine, then the contents would be: api: url: http://myhost.com/api.html title: API documentation in_menu: true The path keys (in the above case "api") are always taken relatively to the directory the virtual file is in except if a path starts with a slash). > 3. What exactly should be the contents of the virtual file? This is > what I tried, but I get the error "can't convert String into Hash" > > \--- !omap > - /api/api.html: > title: Api > url: http://myhost.com/api.html > in_menu: true The problem with the above is that the attributes title, url and in_menu needed to have additional spaces before them sothat YAML knows that these are the names of keys, like this: \--- !omap - /api/api.html: title: Api url: http://myhost.com/api.html in_menu: true Apart from that the entry is valid. > 4. What do I have to do different for a file that actually exists, > but is not generated by webgen? Say I generated > src/docs/code_coverage.html - how exactly do I make that show up in > the menu? Do I still need a .virtual file somewhere? If you generated this file into the src/ directory and told webgen to handle it (for example, by copying it to the output directory), you won't need a virtual file. Then you would probably just need a metainfo file to add meta info entries for this file (in_menu, sort_info, ...). If you didn't generate this file into the src directory, then you would need to add a virtual file. -- Thomas From t_leitner at gmx.at Wed Oct 29 15:21:45 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Wed, 29 Oct 2008 20:21:45 +0100 Subject: [webgen-users] Test Message-ID: <20081029202145.22389174@noeato.mat.univie.ac.at> This is just a Test Mail. You can forget that you read it! :) From franzl at corporatematters.at Tue Oct 28 11:04:24 2008 From: franzl at corporatematters.at (Michael Franzl) Date: Tue, 28 Oct 2008 16:04:24 +0100 Subject: [webgen-users] gallery handler Message-ID: <490729F8.6070308@corporatematters.at> From thread: http://rubyforge.org/pipermail/webgen-users/2008-September/000240.html > So, regarding the road map for the 0.5.x series: I have some ideas of > what I want to implement but nothing is fixed yet. It mostly depends > upon what the users of webgen want to have in the next releases. > However, a rough road map would be this: > 0.5.6 (~2008-10-30) > - port gallery handler Is a gallery hander still in the roadmap of the near future? Michael From franzl at corporatematters.at Tue Oct 28 09:53:56 2008 From: franzl at corporatematters.at (Michael Franzl) Date: Tue, 28 Oct 2008 14:53:56 +0100 Subject: [webgen-users] Gallery Handler Message-ID: <49071974.1070105@corporatematters.at> From thread: http://rubyforge.org/pipermail/webgen-users/2008-September/000240.html > So, regarding the road map for the 0.5.x series: I have some ideas of > what I want to implement but nothing is fixed yet. It mostly depends > upon what the users of webgen want to have in the next releases. > However, a rough road map would be this: > 0.5.6 (~2008-10-30) > - port gallery handler Is a gallery hander still in the roadmap of the near future? Michael From franzl at corporatematters.at Thu Oct 30 05:30:33 2008 From: franzl at corporatematters.at (Michael Franzl) Date: Thu, 30 Oct 2008 10:30:33 +0100 Subject: [webgen-users] gallery handler In-Reply-To: <490729F8.6070308@corporatematters.at> References: <490729F8.6070308@corporatematters.at> Message-ID: <49097EB9.7020500@corporatematters.at> Sorry for the noise, I've had sent two mails to this list (even from two different providers), for nearly two days they weren't delivered, and now they are both there :-/ From smpatil at gmail.com Fri Oct 31 12:45:12 2008 From: smpatil at gmail.com (Siddharth) Date: Fri, 31 Oct 2008 09:45:12 -0700 (PDT) Subject: [webgen-users] Web Form In-Reply-To: <20081019203625.4b70dab5@77.116.207.43.wireless.dyn.drei.com> References: <7229e540-8ce8-4cf8-aeac-8be44bdb7e34@q9g2000hsb.googlegroups.com> <20081019203625.4b70dab5@77.116.207.43.wireless.dyn.drei.com> Message-ID: <1f6c923f-911e-4303-a9af-99ce00603fca@p10g2000prf.googlegroups.com> On Oct 19, 8:36?pm, Thomas Leitner wrote: > Am Sat, 18 Oct 2008 15:33:54 -0700 (PDT) > schrieb Siddharth : > webgen uses a Markup language like Textile or Markdown for writing > page files by default. webgen 0.4.x uses Textile as default, 0.5.x > Markdown. Both markup languages normally allow the inclusion of HTML > tags but some HTML tags may be filtered out. So, as Igor already > suggested, could you post your page file? This would help greatly! > > And what version of webgen are you using (run `webgen version`)? > > -- Thomas Yes, I'm using Markdown for writing the pages, and I thought I should just be able to use the HTML form tags to generate the form. Anyway, I'm using Webgen version 0.5.5. The code for the default template is at: http://pastie.org/pastes/305004 The actual page on which I have the form only has the form tags in the content section. Thanks, Siddharth From t_leitner at gmx.at Fri Oct 31 13:41:29 2008 From: t_leitner at gmx.at (Thomas Leitner) Date: Fri, 31 Oct 2008 18:41:29 +0100 Subject: [webgen-users] Web Form In-Reply-To: <1f6c923f-911e-4303-a9af-99ce00603fca@p10g2000prf.googlegroups.com> References: <7229e540-8ce8-4cf8-aeac-8be44bdb7e34@q9g2000hsb.googlegroups.com> <20081019203625.4b70dab5@77.116.207.43.wireless.dyn.drei.com> <1f6c923f-911e-4303-a9af-99ce00603fca@p10g2000prf.googlegroups.com> Message-ID: <20081031184129.59ba28bf@noeato.mat.univie.ac.at> > Yes, I'm using Markdown for writing the pages, and I thought I should > just be able to use the HTML form tags to generate the form. > Anyway, I'm using Webgen version 0.5.5. The code for the default > template is at: > > http://pastie.org/pastes/305004 > > The actual page on which I have the form only has the form tags in the > content section. I created a new site with 'webgen create formtest', updated the default.template to be the one from the pastie and added the following page file as src/test.page: --- title: Test in_menu: true ---

After running webgen, the output looks fine, ie. all of the above shows up in the generated HTML file. So, it may be your configuration file? Could you post it? -- Thomas