エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Rubyで手軽にRSS/Atomフィードを生成 - Feeder.rb [ゼロと無限の間に]
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
Rubyで手軽にRSS/Atomフィードを生成 - Feeder.rb [ゼロと無限の間に]
require "cgi" require "template" class Feeder def self.get(tmpl_path, options = {}) cgi = CGI.new... require "cgi" require "template" class Feeder def self.get(tmpl_path, options = {}) cgi = CGI.new mime_type = options[:mime_type] || "application/xml" encoding = options[:encoding] || "utf-8" language = options[:language] || "ja" v = Template.get(tmpl_path, {"type" => mime_type, "charset" => encoding}) v.encoding = encoding v.language = language v.site_url = "http://" + cgi.server_name v.feed_url