[#35514] postgreSQL モジュール — Takeshi Honda <moecho21@...>
rubyで、postgreSQLを利用するためのモジュールって
5 messages
2002/07/03
[#35523] [ 質問 ] オブジェクト名を得る方法 — Fujimaru Hiroyasu <f-hiro@...>
ふじまると申します。
7 messages
2002/07/04
[#35537] TMail: Mail#decode — "Shirai,Kaoru" <shirai@...1jp.com>
白井です。
8 messages
2002/07/10
[#35538] Re: TMail: Mail#decode
— Minero Aoki <aamine@...>
2002/07/10
あおきです。
[#35539] erubyがうまくコンパイルできません。 — "Honda" <honda@...>
Hondaといいます。
9 messages
2002/07/11
[#35551] Numeric#=== — Take_tk <ggb03124@...>
たけ(tk)です
6 messages
2002/07/13
[#35556] Beware No. 44495 of ruby-talk — maili31s@... (SugHimsi == SUGIHARA Hiroshi)
(ruby-talk:44495)がKlez.h型のVirusメイルであるようです。
4 messages
2002/07/14
[#35577] [ANN] amrita 0.8.1 — Taku Nakajima <tnakajima@...>
中島@ブレーンです。
5 messages
2002/07/19
[#35582] mod_ruby なしで eruby — FUJIOKA Takeyuki <fujioka@...>
藤岡です。
13 messages
2002/07/19
[#35583] Re: mod_ruby なしで eruby
— akira yamada / やまだあきら <akira@...>
2002/07/19
[#35592] String#center — Take_tk <ggb03124@...>
仕様拡張のお願い。と言うほどのものでもないですが・・
33 messages
2002/07/20
[#35593] Re: String#center
— Kazuhiro NISHIYAMA <zn@...>
2002/07/20
西山和広です。
[#35596] Re: String#center
— Take_tk <ggb03124@...>
2002/07/20
たけ(tk)です。
[#35597] Re: String#center
— Kazuhiro NISHIYAMA <zn@...>
2002/07/20
西山和広です。
[#35599] Rational#to_int ← String#center
— Take_tk <ggb03124@...>
2002/07/21
たけ(tk)です。
[#35601] Re: Rational#to_int ← String#center
— matz@... (Yukihiro Matsumoto)
2002/07/21
まつもと ゆきひろです
[#35604] Re: Rational#to_int ← String#center
— Take_tk <ggb03124@...>
2002/07/22
たけ(tk)です
[#35618] new mathn [Re: Rational#to_int ← String#center]
— keiju@... (石塚圭樹)
2002/07/23
けいじゅ@日本ラショナルソフトウェアです.
[#35624] Re: new mathn [Re: Rational#to_int ← String#center]
— matz@... (Yukihiro Matsumoto)
2002/07/24
まつもと ゆきひろです
[#35628] Re: new mathn [Re: Rational#to_int ← String#center]
— keiju@... (石塚圭樹)
2002/07/24
けいじゅ@日本ラショナルソフトウェアです.
[#35630] Re: new mathn [Re: Rational#to_int ← String#center]
— matz@... (Yukihiro Matsumoto)
2002/07/24
まつもと ゆきひろです
[#35631] scope-in-state [Re: new mathn [Re: Rational#to_int ← String#center]]
— keiju@... (石塚圭樹)
2002/07/25
けいじゅ@日本ラショナルソフトウェアです.
[#35645] Re: scope-in-state [Re: new mathn [Re: Rational#to_int ← String#center]]
— Shin-ichiro HARA <sinara@...>
2002/07/26
原です。
[#35700] import-module (Re: Re: scope-in-state)
— Shin-ichiro HARA <sinara@...>
2002/08/02
原です。
[#35603] [ANN] CGI::Application-1.0.0 released — MoonWolf <moonwolf@...>
MoonWolfです。
10 messages
2002/07/21
[#35612] [ANN] CGI::Application-1.1.0 released
— MoonWolf <moonwolf@...>
2002/07/22
MoonWolfです。
[#35633] String::freeze_mode — Take_tk <ggb03124@...>
たけ(tk)です
8 messages
2002/07/26
[#35634] HTTP セッションのタイムアウト — 杉原 透修 <sugihara@...>
杉原と申します。
5 messages
2002/07/26
[#35646] textbuf: SEGV with GC.start — "Shirai,Kaoru" <shirai@...1jp.com>
白井です。
5 messages
2002/07/26
[#35660] ?/ の意味 — Tadashi Oh-Ya <toy@...>
おおやと申します。
6 messages
2002/07/30
[#35667] cgi のエラー — Takeshi Honda <moecho21@...>
http://homepage1.nifty.com/arima/ruby/index.htm
11 messages
2002/07/30
[#35669] Re: cgi のエラー
— Fujimaru Hiroyasu <f-hiro@...>
2002/07/31
ふじまるです。
[#35670] STR2CSTR() — OHARA Shigeki <os@...>
大原といいます。
12 messages
2002/07/31
[#35671] Re: STR2CSTR()
— matz@... (Yukihiro Matsumoto)
2002/07/31
まつもと ゆきひろです
[#35677] Re: STR2CSTR()
— OHARA Shigeki <os@...>
2002/08/01
大原です。
[ruby-list:35566] [ANN] tmplc-0.0.1 released
From:
MoonWolf <moonwolf@...>
Date:
2002-07-15 14:59:59 UTC
List:
ruby-list #35566
MoonWolfです。
テンプレートコンパイラ tmplc-0.0.1 をリリースしました。
http://www.ruby-lang.org/en/raa-list.rhtml?name=tmplc
テキストファイルやHTMLなどのファイルに :::〜:::でRubyのスクリプトを
埋め込むことが出来ます。
使い方
以下の2ファイル(sample.html,footer.html)を用意する。
-------------------------------------------------
template/sample.html
<html>
<head><title>:::title:::</title></head>
<body>
<h1>:::title:::</h1>
:::footer:::
</body>
</html>
-------------------------------------------------
template/footer.html
<hr>
MoonWolf <moonwolf@moonwolf.com>
-------------------------------------------------
コンパイルする。
$ tmplc.rb template lib
以下のファイルが出力される。
ディレクトリがモジュール、ファイルがメソッドに対応しています。
-------------------------------------------------
lib/template.rb
module Template
def sample(arg=nil,io='')
io << "<html>\n<head><title>"
io << (title)
io << "</title></head>\n<body>\n<h1>"
io << (title)
io << "</h1>\n"
io << (footer)
io << "\n</body>\n</html>\n"
io
end
def footer(arg=nil,io='')
io << "<hr>\nMoonWolf <moonwolf@moonwolf.com>\n"
io
end
end # Template
-------------------------------------------------
クラスにincludeして使います。
-------------------------------------------------
sample.cgi
#!/usr/bin/ruby
require "cgi"
require "lib/template"
class Page
include Template
def initialize(title)
@title = title
end
def main
cgi = CGI.new
cgi.out {
sample
}
end
# Template#sampleから呼び出される
def title
CGI.escapeHTML(@title)
end
end
-------------------------------------------------
ruby-win32の過去ログアーカイブはtmplcで作成されています。
http://www.moonwolf.com/~arcml/cgi-bin/arcml/
--
MoonWolf <moonwolf@moonwolf.com>