嵌入式 Ruby Erubis

码农软件 · 软件分类 · 模板引擎 · 2019-08-25 12:27:56

软件介绍

Erubis 是一个快速、安全和具备高可扩展性的 eRuby 的实现,主要特征如下:

  • 快速,几乎是 ERB 的三倍,比用C开发的eRuby还要快10%
  • File caching of converted Ruby script support.
  • Auto escaping (sanitizing) support, it means that '<%= %>' can be escaped in default. It is desirable for web application.
  • Spaces around '<% %>' are trimmed automatically only when '<%' is at the beginning of line and '%>' is at the end of line.
  • Embedded pattern changeable (default '<% %>'), for example '[% %]' or '<? ?>' are available.
  • Enable to handle Processing Instructions (PI) as embedded pattern (ex. '<?rb ... ?>'). This is desirable for XML/HTML than '<% .. %>' because the latter breaks HTML design but the former doesn't.
  • Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript).
  • Context object available and easy to combine eRuby template with YAML datafile (see the below example).
  • Print statement available.
  • Easy to expand and customize in subclass
    • Print statement support
    • Lines starting with percent character ('%') support
    • Another embedded pattern support
    • etc...
  • Ruby on Rails support.
  • Mod_ruby support.

下图是几个嵌入式 Ruby 的性能比较:

本文地址:https://codercto.com/soft/d/13134.html

启示录

启示录

[美] Marty Cagan / 七印部落 / 华中科技大学出版社 / 2011-5 / 36.00元

为什么市场上那么多软件产品无人问津,成功的产品凤毛麟角?怎样发掘有价值的产品?拿什么说服开发团队接受你的产品设计?如何将敏捷方法融入产品开发?过去二十多年,Marty Cagan作为高级产品经理人为多家一流企业工作过,包括惠普、网景、美国在线、eBay。他亲历了个人电脑 、互联网、 电子商务的起落沉浮。《启示录:打造用户喜爱的产品》从人员、流程、产品三个角度介绍了现代软件(互联网)产品管理的实践经......一起来看看 《启示录》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具