summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authormakoto kuwata <kwa@kuwata-lab.com>2006-05-19 23:57:39 +0000
committermakoto kuwata <kwa@kuwata-lab.com>2006-05-19 23:57:39 +0000
commita758ea58025718ad9a4180c9d2843191db207217 (patch)
tree04b66de1c8d5a49dd0f375157d4cb8d82209dbab /examples
parent7d6e479f25ad164cd26140cbca0eb6b4f67d0eef (diff)
downloaderubis-a758ea58025718ad9a4180c9d2843191db207217.tar.gz
- [change] '_out' is changed to '_buf'
- [change] option '-s' is obsolete - [change] option '-E' is obsolete - [change] option '-e' is renamed to '-E' - [change] use command-line option object in Main class - [refact] Helper#escape_xml() is changed to call String#gsub a time - [change] test-bin.rb invoke Main.new.execute(), not 'ruby $script'
Diffstat (limited to 'examples')
-rw-r--r--examples/example.ejava4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/example.ejava b/examples/example.ejava
index 21dd155..38f87dd 100644
--- a/examples/example.ejava
+++ b/examples/example.ejava
@@ -6,7 +6,7 @@ public class example {
public static void main(String[] args) {
String user = "Erubis";
String[] list = { "<aaa>", "b&b", "\"ccc\"" };
- StringBuffer _out = new StringBuffer();
+ StringBuffer _buf = new StringBuffer();
%>
<p>Hello <%= user %>!</p>
<table>
@@ -20,7 +20,7 @@ public class example {
</tbody>
</table>
<%
- System.out.print(_out.toString());
+ System.out.print(_buf.toString());
}
public static String escape(String s) {