File: kw.rb

package info (click to toggle)
tdiary 5.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,092 kB
  • sloc: ruby: 23,031; javascript: 1,029; xml: 325; makefile: 26; sh: 2
file content (22 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
def kw_label
	"Keyword"
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


# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End: