# -*- coding: utf-8 -*-
# list.rb
#
#
順番付きリスト生成
# <%= ol l %>
# パラメタ:
# l: リスト文字列(\nくぎり)
#
# 順番無しリスト
# <%= ul l , t %>
# パラメタ:
# l: リスト文字列(\nくぎり)
#
# Copyright (c) 2002 abbey
# Distributed under the GPL2 or any later version.
#
def ol( l, t = nil, s = nil )
apply_plugin( %Q[#{li l}
] )
end
def ul( l, t = nil)
apply_plugin( %Q[] )
end
def li( text )
list = ""
text.each_line do |line|
list << ("- " + line.chomp + "
")
end
list
end
# Local Variables:
# mode: ruby
# indent-tabs-mode: t
# tab-width: 3
# ruby-indent-level: 3
# End: