summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakoto kuwata <kwa@kuwata-lab.com>2007-05-07 09:19:45 +0000
committermakoto kuwata <kwa@kuwata-lab.com>2007-05-07 09:19:45 +0000
commit6fcd7b2838366cd429eca83883a7afb69faac871 (patch)
tree72f259bb5fb2b7cb6ad63c8709f85e391d0aca29
parent5d49a14c11cca360fec0f2749a803fc34d0cc298 (diff)
downloaderubis-6fcd7b2838366cd429eca83883a7afb69faac871.tar.gz
- [bugfix] 'convert_file()' was fixed to 'load_file()' in users-guide
-rw-r--r--ChangeLog.txt3
-rw-r--r--doc/Rookbook.yaml3
-rw-r--r--doc/users-guide.html8
-rw-r--r--doc/users-guide.txt8
4 files changed, 14 insertions, 8 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 4b7809d..34470cf 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -2,6 +2,9 @@
.?lastupdate: $Date$
.?version: $Rev$
+: Rev.71 (2007-05-07)
+ .- [bugfix] 'convert_file()' was fixed to 'load_file()' in users-guide
+
: Rev.70 (2007-03-05)
.- [enhance] add DeleteIndentEnhancer
diff --git a/doc/Rookbook.yaml b/doc/Rookbook.yaml
index fe75f8a..524034b 100644
--- a/doc/Rookbook.yaml
+++ b/doc/Rookbook.yaml
@@ -27,6 +27,9 @@ recipes:
- product: :default
ingreds: [ :all ]
+ - product: :doc
+ ingreds: [ users-guide.html ]
+
- product: :clear
method*: |
rm_rf 'guide.d', '*.html'
diff --git a/doc/users-guide.html b/doc/users-guide.html
index b9355b3..e894e98 100644
--- a/doc/users-guide.html
+++ b/doc/users-guide.html
@@ -2029,15 +2029,15 @@ Syntax OK
<a name="topics-caching"></a>
<h3 class="section2">File Caching</h3>
-<p>Erubis::Eruby.convert_file(filename) convert file into Ruby script and return Eruby object.
+<p>Erubis::Eruby.load_file(filename) convert file into Ruby script and return Eruby object.
In addition, it caches converted Ruby script into cache file (filename + '.cache') if cache file is old or not exist.
-If cache file exists and is newer than eruby file, Erubis::Eruby.convert_file() loads cache file.
+If cache file exists and is newer than eruby file, Erubis::Eruby.load_file() loads cache file.
</p>
<div class="program_caption">
-example of Erubis::Eruby.convert_file()</div>
+example of Erubis::Eruby.load_file()</div>
<pre class="program">require 'erubis'
filename = 'example.rhtml'
-eruby = <strong>Erubis::Eruby.convert_file(filename)</strong>
+eruby = <strong>Erubis::Eruby.load_file(filename)</strong>
cachename = filename + '.cache'
if test(?f, cachename)
puts "*** cache file '#{cachename}' created."
diff --git a/doc/users-guide.txt b/doc/users-guide.txt
index e129044..c45671c 100644
--- a/doc/users-guide.txt
+++ b/doc/users-guide.txt
@@ -1638,15 +1638,15 @@ Syntax OK
.$$ File Caching | topics-caching
-Erubis::Eruby.convert_file(filename) convert file into Ruby script and return Eruby object.
+Erubis::Eruby.load_file(filename) convert file into Ruby script and return Eruby object.
In addition, it caches converted Ruby script into cache file (filename + '.cache') if cache file is old or not exist.
-If cache file exists and is newer than eruby file, Erubis::Eruby.convert_file() loads cache file.
+If cache file exists and is newer than eruby file, Erubis::Eruby.load_file() loads cache file.
-.? example of Erubis::Eruby.convert_file()
+.? example of Erubis::Eruby.load_file()
.--------------------
require 'erubis'
filename = 'example.rhtml'
-eruby = {{*Erubis::Eruby.convert_file(filename)*}}
+eruby = {{*Erubis::Eruby.load_file(filename)*}}
cachename = filename + '.cache'
if test(?f, cachename)
puts "*** cache file '#{cachename}' created."