File: src.rb

package info (click to toggle)
tdiary 2.0.2%2B20060303-5
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 8,172 kB
  • ctags: 1,957
  • sloc: ruby: 23,926; lisp: 514; makefile: 87; sh: 71; sql: 32
file content (22 lines) | stat: -rw-r--r-- 427 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# src.rb $Revision: 1.1.4.1 $
#
# src: ե(HTMLդ)
#   ѥ᥿:
#     file: ե̾
#
# Copyright (c) 2005 TADA Tadashi <sho@spc.gr.jp>
# You can distribute this file under the GPL2.
#
def src( file )
	CGI::escapeHTML( File::readlines( file ).join )
end

#
# src_inline: ƥȤ(HTMLդ)
#
# ѥ᥿: ƥʸ
#
def src_inline( str )
	CGI::escapeHTML( str )
end