Displaying 4 results from an estimated 4 matches for "register_tag".
Did you mean:
register_t
2007 Mar 05
1
Creating a simple tag plugin
...or example at http://www.dis.uniroma1.it/~acensi/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'...
2007 Dec 26
1
scope of plugns
...p contains the hierarchy of all pages
on the web 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...
2008 Mar 15
2
new webgen plugin : google analytics
...e code is the following :
===========================================================
class GoogleAnalyticsTag < Tags::DefaultTag
infos(
:name => ''Custom/GoogleAnalytics'',
: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 g...
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