./www/ruby-erubis, Fast and extensible eRuby implementation which supports multi-language

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.7.0nb1, Package name: ruby31-erubis-2.7.0nb1, Maintainer: pkgsrc-users

Erubis is an implementation of eRuby. It has the following features.

* Very fast, almost three times faster than ERB and even 10% faster than eruby
* Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript)
* Auto escaping support
* Auto trimming spaces around '<% %>'
* Embedded pattern changeable (default '<% %>')
* Enable to handle Processing Instructions (PI) as embedded pattern
(ex. '<?rb ... ?>')
* Context object available and easy to combine eRuby template with YAML datafile
* Print statement available
* Easy to extend and customize in subclass
* Ruby on Rails support

Erubis is implemented in pure Ruby. It requires Ruby 1.8 or higher.
Erubis now supports Ruby 1.9.


Required to run:
[lang/ruby23-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 169 KB

Version history: (Expand)


CVS history: (Expand)


   2022-05-05 16:03:28 by Takahiro Kambe | Files touched by this commit (3)
Log message:
www/ruby-erubis: add support for pkg_alternatives support

Also, tweak CONFLICTS.

Bump PKGREVISION.
   2021-10-26 13:31:15 by Nia Alarie | Files touched by this commit (1030)
Log message:
www: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Not committed (merge conflicts):
www/nghttp2/distinfo

Unfetchable distfiles (almost certainly fetched conditionally...):
./www/nginx-devel/distinfo array-var-nginx-module-0.05.tar.gz
./www/nginx-devel/distinfo echo-nginx-module-0.62.tar.gz
./www/nginx-devel/distinfo encrypted-session-nginx-module-0.08.tar.gz
./www/nginx-devel/distinfo form-input-nginx-module-0.12.tar.gz
./www/nginx-devel/distinfo headers-more-nginx-module-0.33.tar.gz
./www/nginx-devel/distinfo lua-nginx-module-0.10.19.tar.gz
./www/nginx-devel/distinfo naxsi-1.3.tar.gz
./www/nginx-devel/distinfo nginx-dav-ext-module-3.0.0.tar.gz
./www/nginx-devel/distinfo nginx-rtmp-module-1.2.2.tar.gz
./www/nginx-devel/distinfo nginx_http_push_module-1.2.10.tar.gz
./www/nginx-devel/distinfo ngx_cache_purge-2.5.1.tar.gz
./www/nginx-devel/distinfo ngx_devel_kit-0.3.1.tar.gz
./www/nginx-devel/distinfo ngx_http_geoip2_module-3.3.tar.gz
./www/nginx-devel/distinfo njs-0.5.0.tar.gz
./www/nginx-devel/distinfo set-misc-nginx-module-0.32.tar.gz
./www/nginx/distinfo array-var-nginx-module-0.05.tar.gz
./www/nginx/distinfo echo-nginx-module-0.62.tar.gz
./www/nginx/distinfo encrypted-session-nginx-module-0.08.tar.gz
./www/nginx/distinfo form-input-nginx-module-0.12.tar.gz
./www/nginx/distinfo headers-more-nginx-module-0.33.tar.gz
./www/nginx/distinfo lua-nginx-module-0.10.19.tar.gz
./www/nginx/distinfo naxsi-1.3.tar.gz
./www/nginx/distinfo nginx-dav-ext-module-3.0.0.tar.gz
./www/nginx/distinfo nginx-rtmp-module-1.2.2.tar.gz
./www/nginx/distinfo nginx_http_push_module-1.2.10.tar.gz
./www/nginx/distinfo ngx_cache_purge-2.5.1.tar.gz
./www/nginx/distinfo ngx_devel_kit-0.3.1.tar.gz
./www/nginx/distinfo ngx_http_geoip2_module-3.3.tar.gz
./www/nginx/distinfo njs-0.5.0.tar.gz
./www/nginx/distinfo set-misc-nginx-module-0.32.tar.gz
   2021-10-07 17:09:00 by Nia Alarie | Files touched by this commit (1033)
Log message:
www: Remove SHA1 hashes for distfiles
   2015-11-04 03:47:43 by Alistair G. Crooks | Files touched by this commit (758)
Log message:
Add SHA512 digests for distfiles for www category

Problems found locating distfiles:
	Package haskell-cgi: missing distfile haskell-cgi-20001206.tar.gz
	Package nginx: missing distfile array-var-nginx-module-0.04.tar.gz
	Package nginx: missing distfile encrypted-session-nginx-module-0.04.tar.gz
	Package nginx: missing distfile headers-more-nginx-module-0.261.tar.gz
	Package nginx: missing distfile nginx_http_push_module-0.692.tar.gz
	Package nginx: missing distfile set-misc-nginx-module-0.29.tar.gz
	Package nginx-devel: missing distfile echo-nginx-module-0.58.tar.gz
	Package nginx-devel: missing distfile form-input-nginx-module-0.11.tar.gz
	Package nginx-devel: missing distfile lua-nginx-module-0.9.16.tar.gz
	Package nginx-devel: missing distfile nginx_http_push_module-0.692.tar.gz
	Package nginx-devel: missing distfile set-misc-nginx-module-0.29.tar.gz
	Package php-owncloud: missing distfile owncloud-8.2.0.tar.bz2

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2013-04-07 22:49:45 by Blue Rats | Files touched by this commit (91)
Log message:
Edited DESCR in the case of:
 File too long (should be no more than 24 lines).
 Line too long (should be no more than 80 characters).
 Trailing empty lines.
 Trailing white-space.
Trucated the long files as best as possible while preserving the most info
contained in them.
   2011-12-15 15:57:37 by Takahiro Kambe | Files touched by this commit (4)
Log message:
Update ruby-erubis package to 2.7.0.

- release:   2.7.0
  date: 2011-04-01
  enhancements:

    - |
	New option ':bufvar' supported to specify buffer variable name.

	ex:
	    input = "Hello <%= name %>!"
	    eruby = Erubis::Eruby.new(input)
	    puts eruby.src
	       #=>  _buf = ''; _buf << "Hello "; _buf << ( \ 
name ).to_s; _buf << '!';

	    eruby = Erubis::Eruby.new(input, :bufvar=>'@_out')
	    puts eruby.src
	       #=>  @_out = ''; @_out << 'Hello '; @_out << ( name \ 
).to_s; @_out << '!';

    - |
	New enhancer 'PrefixedLineEnhancer' which is a customizable version
	of PercentLineEnhancer.
	The difference between PrefixedLineEnhancer and PercentLineEnhancer is:
	* You can indent Ruby statetment lines starting with '%'
	* You can specify prefix character by :prefixchar option.

	ex:
	    class MyEruby < Erubis::Eruby
	      include Erubis::PrefixedLineEnhancer
	    end
	    input = <<END
	    <ul>
	      % for item in @items
	      <li><%= item %></li>
	      % end
	      %% you can indent '%' lines
	    </ul>
	    END
	    eruby = MyEruby.new(input, :prefixchar=>'%')   # default '%'
	    puts eruby.src

	output:
	    _buf = ''; _buf << '<ul>
	    ';   for item in @items
	     _buf << '  <li>'; _buf << ( item ).to_s; _buf << \ 
'</li>
	    ';   end
	      % you can indent '%' lines
	     _buf << '</ul>
	    ';
	    _buf.to_s

    - |
	Add helper CGI script. See 'public_html/README.txt' for details.

    - |
	Rubinius is supported as first-class Ruby implementation.

    - |
	C++ support. Try '-l cpp' command-line option.

  changes:

    - |
	Remove dependency to 'abstract' library.
	You don't need to install 'abstract' gem.

    - |
	Erubis::Eruby#load_file() now sets cache file timestamp to the same
	value as original eRuby file. For example, if you restore eRuby files
	from backup, Erubis::Eruby#load_file() can detect it and generate
	cache file again.

	    ## generates cache file (A.rhtml.cache).
	    eruby = Erubis::Eruby.load_file('A.rhtml')
	    p File.mtime('A.rhtml') == File.mtime('A.rhtml.cache')  #=> true
   2011-12-15 15:29:48 by Takahiro Kambe | Files touched by this commit (4) | Imported package
Log message:
Importing www/erubis pacakge version 2.6.6 as www/ruby-erubis to rename it.