| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
openkk
13年前发布

嵌入式 Ruby Erubis

     <p>Erubis 是一个快速、安全和具备高可扩展性的 eRuby 的实现,主要特征如下:</p>    <ul class="ul1">     <li>快速,几乎是 ERB 的三倍,比用C开发的eRuby还要快10% </li>     <li>File caching of converted Ruby script support. </li>     <li>Auto escaping (sanitizing) support, it means that '<%= %>' can be escaped in default. It is desirable for web application. </li>     <li>Spaces around '<% %>' are trimmed automatically only when '<%' is at the beginning of line and '%>' is at the end of line. </li>     <li>Embedded pattern changeable (default '<% %>'), for example '[% %]' or '      <!--? ?-->' are available. </li>     <li>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. </li>     <li>Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript). </li>     <li>Context object available and easy to combine eRuby template with YAML datafile (see the below example). </li>     <li>Print statement available. </li>     <li>Easy to expand and customize in subclass      <ul class="ul2">       <li>Print statement support </li>       <li>Lines starting with percent character ('%') support </li>       <li>Another embedded pattern support </li>       <li>etc... </li>      </ul> </li>     <li>Ruby on Rails support. </li>     <li>Mod_ruby support. </li>    </ul>    <p>下图是几个嵌入式 Ruby 的性能比较:</p>    <p><img alt="嵌入式 Ruby Erubis" src="https://simg.open-open.com/show/191bf7b24d64af260cbfce1ee19a9b79.png" width="351" height="262" /><br /> </p>    <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1322991807749" target="_blank">http://www.open-open.com/lib/view/home/1322991807749</a></p>     
 本文由用户 openkk 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1322991807749.html
Ruby 模板引擎