Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 485bb45c7bad7f656bd809a519bc937e > files > 8

eruby-libs-1.0.5-16.fc15.i686.rpm

=begin

= eRuby¤ÎREADME

== eRuby¤È¤Ï?

eRuby¤ÏRuby¤Î¥³¡¼¥É¤¬Ëä¤á¤³¤Þ¤ì¤¿¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤ò²ò¼á¼Â¹Ô¤·¤Þ¤¹¡£
¤¿¤È¤¨¤Ð¡¢eRuby¤ò»È¤¨¤Ð¡¢HTML¤ËRuby¤Î¥³¡¼¥É¤òHTML¥Õ¥¡¥¤¥ë¤ËËä¤á¤³¤à
¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

== Í׵ᤵ¤ì¤ë´Ä¶­

* Ruby version 1.6.x °Ê¹ß

== ¥¤¥ó¥¹¥È¡¼¥ë

(1) `./configure.rb'¤È¥¿¥¤¥×¤·¡¢Makefile¤òºîÀ®¤·¤Æ¤¯¤À¤µ¤¤¡£
    (¤Ø¥ë¥×¥á¥Ã¥»¡¼¥¸¤òÆÀ¤ë¤Ë¤Ï`./configure.rb --help'¤È¥¿¥¤¥×¤·¤Æ¤¯¤À¤µ¤¤¡£)

(2) `make'¤È¥¿¥¤¥×¤·¡¢eRuby¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£

(3) `make install'¤È¥¿¥¤¥×¤·¡¢¥Õ¥¡¥¤¥ë¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£

== ʸˡ

eRuby¤Î¥Ö¥í¥Ã¥¯¤Ï`<%'¤Ç»Ï¤Þ¤ê¡¢`%>'¤Ç½ª¤ê¤Þ¤¹¡£eRuby¤Ï¥Ö¥í¥Ã¥¯¤ò¤½¤Î
¥Ö¥í¥Ã¥¯¤Î½ÐÎÏ·ë²Ì¤ËÃÖ¤­´¹¤¨¤Þ¤¹¡£

  $ cat foo
  ¤³¤ó¤Ë¤Á¤Ï¡¢<% print "¤ß¤Ê¤µ¤ó!" %>
  $ eruby foo
  ¤³¤ó¤Ë¤Á¤Ï¡¢¤ß¤Ê¤µ¤ó!

`<%'¤Î¼¡¤Ë`='¤¬Íè¤ë¾ì¹ç¡¢eRuby¤Ï¥Ö¥í¥Ã¥¯¤ò¤½¤Î¥Ö¥í¥Ã¥¯¤òɾ²Á¤·¤¿ÃͤË
ÃÖ¤­´¹¤¨¤Þ¤¹¡£

  $ cat bar
  ¤³¤ó¤Ë¤Á¤Ï¡¢<%= "¤ß¤Ê¤µ¤ó!" %>
  $ eruby bar
  ¤³¤ó¤Ë¤Á¤Ï¡¢¤ß¤Ê¤µ¤ó!

`<%'¤Î¼¡¤Ë`#'¤¬Íè¤ë¾ì¹ç¡¢¥Ö¥í¥Ã¥¯¤Ï¥³¥á¥ó¥È¤È¤·¤Æ̵»ë¤µ¤ì¤Þ¤¹¡£

  $ cat baz
  ¤³¤ó¤Ë¤Á¤Ï¡¢<%# ¤³¤ì¤Ï
  ¥³¥á¥ó¥È %>¤ß¤Ê¤µ¤ó!
  $ eruby baz
  ¤³¤ó¤Ë¤Á¤Ï¡¢¤ß¤Ê¤µ¤ó!

`%'¤Ç»Ï¤Þ¤ë¹Ô¤Ï¡¢Ruby¥×¥í¥°¥é¥à¤È¤·¤Æɾ²Á¤µ¤ì¤Þ¤¹¡£eRuby¤Ï¤½¤Î¹Ô¤ò½Ð
ÎÏ·ë²Ì¤ÇÃÖ¤­´¹¤¨¤Þ¤¹¡£

  $ cat quux
  % x = 1 + 1
  1 + 1 = <%= x %>
  $ eruby quux
  1 + 1 = 2

=end

Local variables:
mode: indented-text
mode: auto-fill
fill-column: 70
End: