嵌入式 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

疯狂的独角兽

疯狂的独角兽

丹·莱昂斯 / 王天任 / 海南出版社 / 2017-10 / 42

★商业与文学的有机结合,真实与虚幻间嬉笑怒骂,幽默风趣、引人入胜、发人深省的商业小说。 ★《纽约时报》《华尔街日报》《旧金山纪事报》Amazon畅销书,《财富》《纽约邮报》《新闻周刊》《华盛顿邮报》、畅销书《硅谷钢铁侠》作者阿什利·万斯、畅销书《一网打尽》作者布拉德·斯通联袂推荐。 ★作者丹·莱昂斯集小说家、记者、编剧为一身——HBO经典热门剧、豆瓣高分美剧《硅谷》作者;畅销书《乔布斯......一起来看看 《疯狂的独角兽》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具