# @param [String] text # @param [Object] tokens def initialize(tag_name, text, tokens) super @text = text end # @param [Object] context def render(context) end end Liquid::Template.register_tag(<name>, Tag)
:data, :ext, ... # @param [Jekyll::Site] site # @param [String] base - base directory # @param [String] dir - dirname of source file in base dir # @param [String] name def initialize(site, base, dir, name) end end ページの中身を詰める処理 page = Page.new(site, basem dir, name) page.data[key] = value
rubygems.org に公開すべき。この場合は gem の名前は rubygems.org 上で利用可能なものに限られる。 If your generator is contained within a single file, it can be named whatever you want but it should have an .rb extension. If your generator is split across multiple files, it should be packaged as a Rubygem to be published at https://rubygems.org/. In this case, the name of the gem depends on the availability of the name at that site because no two gems can have the same name. “ “