summaryrefslogtreecommitdiff
path: root/ReleaseNote.txt
diff options
context:
space:
mode:
authormakoto kuwata <kwa@kuwata-lab.com>2006-03-06 13:01:28 +0000
committermakoto kuwata <kwa@kuwata-lab.com>2006-03-06 13:01:28 +0000
commit2481e29aa76b99f8a5236f16c67be73646522223 (patch)
treef939f9ad9d6404c9e45ba0cf5c3e162d58fbbd22 /ReleaseNote.txt
parenta7d3f7d264a782203fd784b488d3f8ca79a959ae (diff)
downloaderubis-2481e29aa76b99f8a5236f16c67be73646522223.tar.gz
- [enhance] '<%# ... %>' support
- [update] users-guide updated - [enhance] new command-line option '-x' : script source removing the last '_out' line - [release] 1.1.0 and 1.1.1
Diffstat (limited to 'ReleaseNote.txt')
-rw-r--r--ReleaseNote.txt62
1 files changed, 62 insertions, 0 deletions
diff --git a/ReleaseNote.txt b/ReleaseNote.txt
new file mode 100644
index 0000000..fd24c33
--- /dev/null
+++ b/ReleaseNote.txt
@@ -0,0 +1,62 @@
+
+$ Release 1.1.0 (2006-03-05)
+
+I have released Erubis 1.1.0.
+http://rubyforge.org/projects/erubis/
+
+Erubis is an implementation of eRuby.
+It has the following features:
+
+* Auto sanitizing support
+* Auto trimming spaces around '<% %>'
+* Embedded pattern changeable (default '<% %>')
+* Context object available
+* Print statement available
+* Easy to expand in subclass
+
+Erubis is implemented in pure Ruby. It requires Ruby 1.8 or higher.
+
+See doc/users-guide.html in archive for details.
+
+
+: Enhancement from 1.0.1
+
+ * '<%# .. %>' support. Erubis ignores '<%# %>'.
+
+ * New class PrintEruby and PrintXmlEruby available.
+ These class enables you to embed print statement in eRuby
+ (this feature is not supported in ERB).
+
+ ex. example.eb
+ --------------------
+ ## data
+ list = ['aaa', 'bbb', 'ccc']
+ context = { :list => list }
+
+ ## eRuby script
+ ## (use print statement instead of <%= item %>)
+ input = <<-END
+ <ul>
+ <% for item in list %>
+ <li><% print item %></li>
+ <% end %>
+ </ul>
+ END
+
+ ## create eruby and get result as string
+ require 'erubis'
+ eruby = Erubis::PrintEruby.new(input)
+ str = eruby.evaluate(context) # don't use result()!
+ print str
+ --------------------
+
+ result:
+ ====================
+ $ ruby example.rb
+ <ul>
+ <li>aaa</li>
+ <li>bbb</li>
+ <li>ccc</li>
+ </ul>
+ ====================
+