Sha256: 6ce336a7186cd2b742c2213137d1fc6e3c53af5bcaa8b91a41adabb7e150bf28

Contents?: true

Size: 1.71 KB

Versions: 251

Compression:

Stored size: 1.71 KB

Contents

##
## $Release: 2.7.0 $
## copyright(c) 2006-2011 kuwata-lab.com all rights reserved.
##

##
## an implementation of eRuby
##
## ex.
##   input = <<'END'
##    <ul>
##     <% for item in @list %>
##      <li><%= item %>
##          <%== item %></li>
##     <% end %>
##    </ul>
##   END
##   list = ['<aaa>', 'b&b', '"ccc"']
##   eruby = Erubis::Eruby.new(input)
##   puts "--- code ---"
##   puts eruby.src
##   puts "--- result ---"
##   context = Erubis::Context.new()   # or new(:list=>list)
##   context[:list] = list
##   puts eruby.evaluate(context)
##
## result:
##   --- source ---
##   _buf = ''; _buf << '<ul>
##   ';  for item in @list 
##    _buf << '  <li>'; _buf << ( item ).to_s; _buf << '
##   '; _buf << '      '; _buf << Erubis::XmlHelper.escape_xml( item ); _buf << '</li>
##   ';  end 
##    _buf << '</ul>
##   ';
##   _buf.to_s
##   --- result ---
##    <ul>
##      <li><aaa>
##          &lt;aaa&gt;</li>
##      <li>b&b
##          b&amp;b</li>
##      <li>"ccc"
##          &quot;ccc&quot;</li>
##    </ul>
##


module Erubis
  VERSION = ('$Release: 2.7.0 $' =~ /([.\d]+)/) && $1
end

require 'erubis/engine'
#require 'erubis/generator'
#require 'erubis/converter'
#require 'erubis/evaluator'
#require 'erubis/error'
#require 'erubis/context'
#requier 'erubis/util'
require 'erubis/helper'
require 'erubis/enhancer'
#require 'erubis/tiny'
require 'erubis/engine/eruby'
#require 'erubis/engine/enhanced'    # enhanced eruby engines
#require 'erubis/engine/optimized'   # generates optimized ruby code
#require 'erubis/engine/ephp'
#require 'erubis/engine/ec'
#require 'erubis/engine/ejava'
#require 'erubis/engine/escheme'
#require 'erubis/engine/eperl'
#require 'erubis/engine/ejavascript'

require 'erubis/local-setting'

Version data entries

251 entries across 211 versions & 41 rubygems

Version Path
brakeman-6.2.2 bundle/ruby/3.1.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-6.2.2.rc1 bundle/ruby/3.3.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-6.2.1 bundle/ruby/3.1.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-6.2.0 bundle/ruby/3.1.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-6.1.2 bundle/ruby/3.3.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-6.1.1 bundle/ruby/3.0.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-6.1.0 bundle/ruby/3.1.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-6.0.1 bundle/ruby/3.1.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-6.0.0 bundle/ruby/3.0.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.4.1 bundle/ruby/3.1.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.4.0 bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.3.1 bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.3.0 bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.2.3 bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.2.2 bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.2.1 bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.2.0 bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.1.2 bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.1.1 bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis.rb
brakeman-5.1.0 bundle/ruby/2.7.0/gems/erubis-2.7.0/lib/erubis.rb