File: kw.rb

package info (click to toggle)
tdiary 2.0.1-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,220 kB
  • ctags: 1,667
  • sloc: ruby: 20,044; lisp: 476; makefile: 91; sql: 32; sh: 31
file content (15 lines) | stat: -rw-r--r-- 423 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
def kw_label
	"Keyword plugin"
end

def kw_desc
	<<-HTML
	<p>kw(KeyWord) plugin generate a Link by simple words. You can specify keywords		
	as space sepalated value: "keyword URL". For example,</p>
	<pre>google http://www.google.com/search?q=$1</pre>
	<p>then you specify in your diary as:</p>
	<pre>&lt;%=kw 'google:tdiary' %&gt;</pre>
	<p>so it will be translated to link of seraching 'tdiary' at Google.</p>
	HTML
end