mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Support inline source in Kilmer template
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7cc4f065fa
commit
e735472d1f
2 changed files with 21 additions and 0 deletions
|
@ -1227,6 +1227,9 @@ module Generators
|
|||
'title' => CGI.escapeHTML(@options.title),
|
||||
'charset' => @options.charset
|
||||
}
|
||||
if @options.inline_source
|
||||
values['inline_source'] = true
|
||||
end
|
||||
template.write_html_on(f, values)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -272,6 +272,19 @@ IF:m_desc
|
|||
%m_desc%
|
||||
</div>
|
||||
ENDIF:m_desc
|
||||
IF:aka
|
||||
<div class="aka">
|
||||
This method is also aliased as
|
||||
START:aka
|
||||
<a href="%aref%">%name%</a>
|
||||
END:aka
|
||||
</div>
|
||||
ENDIF:aka
|
||||
IF:sourcecode
|
||||
<pre class="source">
|
||||
%sourcecode%
|
||||
</pre>
|
||||
ENDIF:sourcecode
|
||||
END:methods
|
||||
ENDIF:methods
|
||||
END:method_list
|
||||
|
@ -369,10 +382,15 @@ INDEX = %{
|
|||
<frame src="fr_class_index.html" name="Classes">
|
||||
<frame src="fr_method_index.html" name="Methods">
|
||||
</frameset>
|
||||
IF:inline_source
|
||||
<frame src="%initial_page%" name="docwin">
|
||||
ENDIF:inline_source
|
||||
IFNOT:inline_source
|
||||
<frameset rows="80%,20%">
|
||||
<frame src="%initial_page%" name="docwin">
|
||||
<frame src="blank.html" name="source">
|
||||
</frameset>
|
||||
ENDIF:inline_source
|
||||
<noframes>
|
||||
<body bgcolor="white">
|
||||
Click <a href="html/index.html">here</a> for a non-frames
|
||||
|
|
Loading…
Reference in a new issue