search for: process_tag

Displaying 5 results from an estimated 5 matches for "process_tag".

Did you mean: process_tar
2007 Mar 05
1
Creating a simple tag plugin
...category/sss06.html) This is my flickr.rb: load_plugin ''webgen/plugins/tags/tag_processor'' module Tags class FlickrTag < DefaultTag param ''url'', nil, ''Url of the photo on Flickr.'' register_tag ''flickr'' def process_tag( tag, chain ) url = param( ''url'' ) ... end end end I get ''ERROR -- No default mandatory parameter specified for tag ''Tag/Flickr'' but set in < ... sss062.page>'' I can''t understand what''s wrong. -- Andr...
2007 Dec 26
1
scope of plugns
...site. class FileListTag < Tags::DefaultTag infos( :name => ''Custom/FileList'', :author => "Nicolas Delsaux", :summary => ''Shows all page files in the directory of the current page'' ) register_tag ''filelist'' def process_tag( tag, chain ) return "Hello World" end end So, in my output folder, {filelist should be replaced by Hello world, no ? But {filelist} remains totally unchanged. Is it normal ? -- Nicolas Delsaux N''imprimez ce mail que si vous ne savez pas le lire sur l''?cran : les...
2008 Mar 15
2
new webgen plugin : google analytics
...oogleAnalytics'', :summary => "Allows website tracking thanks to Google Analytics ga.js code" ) register_tag ''googleAnalytics'' param ''key'', 1, ''The Google analytics code given at google analytics website'' def process_tag(tag, chain) key = param(''key'') return <<EOT <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src=''&qu...
2007 Jun 28
3
Img relocatable inside plugin
Hi, i''m searching to insert a relocatable image into a my plugin, but i don''t want to reimplement what was already done... i saw that in the gallery plugin there''s something like: <img src=\"{relocatable: #{imgname}}\"/> but i wasn''t able to reproduce this behavior.... How can i make this work? thanks, bye. -- -gaspa-
2008 Mar 16
8
include a page in another
Hi, for my isbn plugin, I''m wishing to incldue generated isbn pages in caller pages (the ones with <isbn value=""> tags). But I want my isbn page to be processed before for its tags to be transformed (like the relocatable or other ones). Besides, i do not want its header to be included. Is there an easy solution for that, or should I do the work myself ? -- Nicolas