summaryrefslogtreecommitdiff
path: root/ReleaseNote.txt
diff options
context:
space:
mode:
Diffstat (limited to 'ReleaseNote.txt')
-rw-r--r--ReleaseNote.txt67
1 files changed, 67 insertions, 0 deletions
diff --git a/ReleaseNote.txt b/ReleaseNote.txt
index c086f88..d0549ae 100644
--- a/ReleaseNote.txt
+++ b/ReleaseNote.txt
@@ -1,3 +1,70 @@
+$ [ANN] Erubis 2.4.0 released - a fast eRuby implementation
+
+Erubis 2.4.0 released.
+http://www.kuwata-lab.com/erubis/
+In this release, Erubis provides important feature for Ruby on Rails
+application.
+
+Enhancements:
+
+ - |
+ Preprocessing is supported by Ruby on Rails helper.
+ Preprocessing makes Ruby on Rails application about 20-40 percent faster.
+
+ For example,
+
+ [%= link_to 'Show', :action=>'show', :id=_?('@user.id') %]
+
+ is evaluate by preprocessor and expanded into the following
+ when template file is loaded.
+
+ <a href="/users/show/<%=@user.id%>">Show</a>
+
+ It means that link_to() is never called when template is rendered
+ and rendering speed will be much faster in the result.
+
+ See User's Guide for details.
+ http://www.kuwata-lab.com/erubis/users-guide.05.html#rails-preprocessing
+
+ - |
+ Erubis::Eruby#evaluate() (or Erubis::RubyEvaluator#evaluate())
+ creates Proc object from @src and eval it.
+
+ def evaluate(context=Context.new)
+ context = Context.new(context) if context.is_a?(Hash)
+ @_proc ||= eval("proc { #{@src} }", TOPLEVEL_BINDING, @filename || '(erubis)')
+ return context.instance_eval(&@_proc)
+ end
+
+ This makes evaluate() much faster when eruby object is reused.
+
+ - |
+ Erubis::Eruby#def_method() is supported.
+ This method defines ruby code as module's instance method.
+
+ def def_method(module_object, method_name, filename=nil)
+ module_object.module_eval("def #{method_name}; #{@src}; end", filename || @filename)
+ end
+
+ This is equivarent to ERB#def_method().
+
+ - |
+ Erubis::XmlHelper.url_escape() and u() which is alias of url_escape()
+ are added.
+ This is equivarent to ERB#Util.url_escape().
+
+
+Bugfix:
+
+ - Help message was not shown when '-h' is specified. Fixed.
+
+ - 'def method()' was not availabe in template file. Fixed.
+
+
+
+
+--------------------------------------------------------------------------------
+
$ [ANN] Erubis 2.3.1 released - a serious bug is fixed in rails_helper.rb
Erubis 2.3.1 released.