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

网站重构(第3版)

网站重构(第3版)

[美] Jeffrey Zeldman、[美] Ethan Marcotte / 傅捷、祝军、李宏 / 电子工业出版社 / 2011-3 / 59.00元

《网站重构:应用Web标准进行设计(第3版)》内容简介:畅销书作家、设计师、网页标准教父jeffrey zeldman再次更新了他经典的、颠覆行业的指南书。这已经是《网站重构:应用Web标准进行设计(第3版)》的第3版了,此次更新基本涵盖了随着环境和技术的变化,web标准所面临的挑战以及因此而发生的改善。第3版让基于标准的设计思想更加清晰,更加易于理解,帮助你在这个领域中保持聪明和领先。 ......一起来看看 《网站重构(第3版)》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

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

在线 XML 格式化压缩工具